StorageService class

Constructors

StorageService(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(String key) → Future<bool>
existsKey(String key) → Future<bool>
getBool(String key) → Future<bool>
getData(String key) → Future<Map<String, dynamic>?>
getDataTimmed(String key) → Future<Map<String, dynamic>?>
getString(String key) → Future<String?>
getStringTimmed(String 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