StorageService class
Constructors
- StorageService.new(SharedPreferences instance)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- instance → SharedPreferences
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearAll(
) → Future< bool> -
dropKey(
dynamic key) → Future< bool> -
existsKey(
dynamic key) → Future< bool> -
getBool(
String key) → Future< bool> -
getData(
dynamic key) → Future< Map< String, dynamic> ?> -
getDataTimmed(
dynamic key) → Future< Map< String, dynamic> ?> -
getString(
dynamic key) → Future< String?> -
getStringTimmed(
dynamic key) → Future< String?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBool(
String key, bool value) → Future< bool> -
setData(
String key, dynamic value, {bool serialize = true}) → Future< bool> -
setDataTimmed(
String key, dynamic value, {Duration time = const Duration(minutes: 10), bool serialize = true}) → Future< bool> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited