SaveReactiveProviderFamily<T, A> class

Generate SaveReactiveProviders for each arguments.

Constructors

SaveReactiveProviderFamily(FutureOr<T> build(SaveObserver $, A arg), {bool autoDispose = true, void onDispose(A arg, T last)?})

Properties

autoDispose bool
Whether to dispose the state automatically.
final
build FutureOr<T> Function(SaveObserver $, A arg)
final
familyKey SaveRepositoryKey
latefinal
hashCode int
The hash code for this object.
no setterinherited
onDispose → void Function(A arg, T last)?
Disposes the resources when the state is disposed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(A arg) SaveProvider<T>
Syntactic sugar for createProvider
createEffect({void onInit(SaveObserver $, T first, A arg)?, void onUpdate(SaveObserver $, T value, A arg)?, void onDispose(SaveObserver $, T last, A arg)?, void orElse(SaveObserver $, T value, A arg)?}) SaveReactiveFromFamilyEffect<T, A>
Create a SaveObservableEffect for every providers created by this.
createLoader(FutureOr<T> load(SaveObserver $, A arg)) SaveReactiveFromFamilyLoader<T, A>
Create a SaveLoader for every providers created by this family.
createProvider(A arg) SaveProvider<T>
Create a SaveProvider that is identified by an arg. If the arg is same then the providers, then the providers will create the same key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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