Persistable<ValueT, KeyT, EncodedT> mixin
A mixin that enables notifiers to be persisted to a database.
This does not cause notifiers to be persisted by default.
Instead, notifiers have to call persist in their build
method.
- @publicInPersist
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
persist(
{required KeyT key, required FutureOr< Storage< storage, required EncodedT encode(ValueT state), required ValueT decode(EncodedT encoded), StorageOptions options = const StorageOptions()}) → FutureOr<KeyT, EncodedT> >void> - Persist the state of a provider to a database.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited