Wraps NSUserDefaults (on iOS and macOS), SharedPreferences (on Android), LocalStorage (on Web) and JSON file (on Windows and Linux), providing a persistent store for simple data.
Data is persisted to disk asynchronously.
Neither platform can guarantee that writes will be persisted to disk after returning and this plugin must not be used for storing critical data.
Getting Started
In order to use this plugin, add dependency in the pubspec.yaml: