A Flutter plugin to interact with NSUserDefaults on iOS and SharedPreferences on Android.
Checkout also the official shared_preferences plugin from Flutter. Here are a few differences
between the two:
- Allows selecting specific settings store by name. Can be useful if you have setup
an App Group for iOS and have shared
NSUserDefaultsinstance different fromstandardUserDefaults. - Does not filter settings by any prefix.
shared_preferencesusesflutter.prefix on all keys. - Does not cache values on the Dart side. Every call to
getretrieves fresh value from the native side.