SaveProvider<T> class abstract

Provides the key and the observable for the state.

Implementers

Constructors

SaveProvider()
const

Properties

autoDispose bool
Whether to dispose the state automatically.
no setter
hashCode int
The hash code for this object.
no setterinherited
key SaveRepositoryKey
A SaveRepositoryKey to distinguish each SaveObservableImpls.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createEffect({void onInit(SaveObserver $, T first)?, void onUpdate(SaveObserver $, T value)?, void onDispose(SaveObserver $, T last)?, void orElse(SaveObserver $, T value)?}) SaveEffect
Creates a SaveEffect for this provider.
createLoader(FutureOr<T> load(SaveObserver $)) SaveLoader
Creates a SaveLoader for this provider.
createObservable([FutureOr<T> loader()?]) SaveObservable<T>
Creates an initial state of SaveState.
dispose(T last) → void
Disposes the resources when the state is disposed.
load(SaveLoader loader) FutureOr<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runEffect(SaveEffectType type, List<SaveEffect> effects, T value) → void
Runs the SaveEffects.
select<S>(S select(T value), {Stream<S> then(Stream<S> source, SaveObserver $)?}) SaveProvider<S>
Modifies the notification timing and the value of the state
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited