PersistentMemoryStore<T> class
- Implemented types
- Annotations
Constructors
-
PersistentMemoryStore({required FutureOr<
T> defaultValue()})
Properties
-
defaultValue
→ FutureOr<
T> Function() -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ T
-
getter/setter pair
Methods
-
close(
) → Future< void> -
override
-
init(
) → Future< void> -
init call lazy only once before call load or save
by default do nothing
override
-
load(
) → Future< T> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
T newValue) → Future< T> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited