PersistentStorageInterface<T> class
- Implemented types
Constructors
- PersistentStorageInterface({required String key, required String? encoder(T value), required T decoder(String? value)})
Properties
- decoder → T Function(String? value)
-
final
- encoder → String? Function(T value)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValueFromStorage → bool
-
no setteroverride
- key → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get(
) → Future< T> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onGetError(
Object? e, T lastValue) → void -
override
-
onSaveError(
Object? e) → void -
override
-
onSaveSuccess(
Object? e) → void -
override
-
save(
T value) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited