0 purchases
dynamic shared preferences
#Dynamic Shared Preferences
Features #
You can Save and retrieve following data with this package:
String, int, double, List<String>, dataModel
Getting started #
To use this package add dynamic_shared_preferences as dependency to your pubspec.yaml
dependencies:
...
dynamic_shared_preferences: ^0.0.1
copied to clipboard
Usage #
Instantiate #
DynamicSharedPreferences gen = DynamicSharedPreferences();
copied to clipboard
Save Values to a key #
gen.save(key: 'keyName', value: ParsedDataModel, isModel: true);
copied to clipboard
gen.save(key: 'keyName', value: 'keyValue', isModel: false);
copied to clipboard
Fetch Values from a key #
gen.get(key: 'keyName', isModel: true);
copied to clipboard
gen.get(key: 'keyName', isModel: false);
copied to clipboard
Remove Values for a key #
gen.remove(key: 'keyName');
copied to clipboard
Clear all key values #
gen.clear();
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.