LocalStorage class

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

clear() Future<bool>
get<T>(String key, T transformer(dynamic map), {T? defValue}) → T?
getBool(String key, {bool? defValue}) bool?
getDouble(String key, {double? defValue}) double?
getInt(String key, {int? defValue}) int?
getJsonObject(String key) → dynamic
getKeys() Set<String>
getString(String key, {String? defValue}) String?
getStringList(String key, {List<String>? defValue = const []}) List<String>?
haveKey(String key) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put<T>(String key, T value) Future<bool>
putBool(String key, bool value) Future<bool>
putDouble(String key, double value) Future<bool>
putInt(String key, int value) Future<bool>
putString(String key, String value) Future<bool>
putStringList(String key, List<String> value) Future<bool>
remove(String key) Future<bool>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getInstance() LocalStorage?
init() Future<LocalStorage>