SaveReactiveObservableEffect<T> class
The effect runs on SaveObservable with SaveObserver.
- Inheritance
-
- Object
- SaveEffect
- SaveEffectWithObserver
- SaveReactiveObservableEffect
Constructors
- SaveReactiveObservableEffect(SaveRepositoryKey key, {void onInit(SaveObserver $, T first)?, void onUpdate(SaveObserver $, T value)?, void onDispose(SaveObserver $, T last)?, void orElse(SaveObserver $, T value)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → SaveRepositoryKey
-
Distinguishs its belonging.
final
- onDispose → void Function(SaveObserver $, T last)?
-
Runs when the state is disposed.
final
- onInit → void Function(SaveObserver $, T first)?
-
Runs on the state's initialization.
final
- onUpdate → void Function(SaveObserver $, T value)?
-
Runs on everytime the state changes.
final
- orElse → void Function(SaveObserver $, T value)?
-
Runs if others are not defined.
final
- 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
-
toNormalEffect(
SaveObserver $) → SaveObservableEffect< T> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited