A simple wrapper for SharedPreferences
Supported data types are int
, double
, bool
, String
and List
.
Android | iOS | Linux | macOS | Web | Windows | |
---|---|---|---|---|---|---|
Support | SDK 16+ | 9.0+ | Any | 10.11+ | Any | Any |
Usage
To use this package, add simple_shared_preferences
as a dependency in your pubspec.yaml file.
Examples
Here are small examples that show you how to use the API.
Use like SharedPreferences
Remove an entry
Read data
Write data
// Remove data for the 'counter' key. final success = await simplePreference.remove('counter');
Leave A Comment