NotifierPersistX<StateT, ValueT> extension
Adds persist method to AnyNotifier.
This is separate from AnyNotifier because it is experimental.
Methods
-
persist<
KeyT, EncodedT> (FutureOr< Storage< storage, {required KeyT key, required EncodedT encode(ValueT state), required ValueT decode(EncodedT encoded), StorageOptions options = const StorageOptions()}) → PersistResultKeyT, EncodedT> > -
Available on AnyNotifier<
Persist the state of a provider to a database.StateT, ValueT> , provided by the NotifierPersistX extension