SharedPrefsService<T> class

Constructors

SharedPrefsService({required String key, required T fromJson(Map<String, dynamic>)})

Properties

fromJson → T Function(Map<String, dynamic>)
final
hashCode → int
The hash code for this object.
no setterinherited
key → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearall() → Future<void>
clearKey() → Future<void>
getItems() → Future<List<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeItem(bool matcher(T)) → Future<void>
saveItem(T item) → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

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