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.

  1. @publicInPersist

Properties

hashCode int
The hash code for this object.
no setterinherited
ref Ref
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
persist({required KeyT key, required FutureOr<Storage<KeyT, EncodedT>> storage, required EncodedT encode(ValueT state), required ValueT decode(EncodedT encoded), StorageOptions options = const StorageOptions()}) FutureOr<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