Last updated:
0 purchases
shared preferences manager
shared_preferences_manager #
Usage #
To use this plugin, add shared_preferences_manager as a dependency in your pubspec.yaml file.
1. Instantiate the class #
SharedPreferencesManager spm = SharedPreferencesManager();
copied to clipboard
Set Key/Value pair #
spm.setKV('key', 'value');
copied to clipboard
Get Key/Value pair #
var result = await spm.getKV('key', 'default value');
copied to clipboard
Remove preference #
spm.removePreference('test_key');
copied to clipboard
Clear preferences #
spm.removePreference('all);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.