Persistro class
Provides persistent storage functionality using SharedPreferences.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getBool(
String key) → Future< bool?> - Retrieves a stored boolean value.
-
getDouble(
String key) → Future< double?> - Retrieves a stored double value.
-
getInt(
String key) → Future< int?> - Retrieves a stored integer value.
-
getString(
String key) → Future< String?> - Retrieves a stored string value.
-
getStringList(
String key) → Future< List< String> ?> - Retrieves a stored list of strings.
-
putBool(
String key, bool value) → Future< void> - Stores a boolean value.
-
putDouble(
String key, double value) → Future< void> - Stores a double value.
-
putInt(
String key, int value) → Future< void> - Stores an integer value.
-
putString(
String key, String value) → Future< void> - Stores a string value.
-
putStringList(
String key, List< String> value) → Future<void> - Stores a list of strings.