PreferenceStore class abstract
interface for shared preference storage
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(
String key) → Future< void> - delete a value from preference store by key
-
getBool(
String key, bool defaultValue) → Future< bool> - get a boolean value from preference store
-
getInt(
String key) → Future< int?> - get an integer from preference store
-
getString(
String key) → Future< String?> - get a string from preference store
-
getStringList(
String key) → Future< List< String> ?> -
initStore(
) → Future - initialize the store instance
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBool(
String key, bool value) → Future< void> - save a boolean value to preference store
-
setInt(
String key, int value) → Future< void> - save a value to preference store as integer
-
setString(
String key, String value) → Future< void> - set a string in preference store
-
setStringList(
String key, List< String> value) → Future<void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited