ValuableCallback class abstract

User-defined callback that can watch Valuable to be automatically re-call

Constructors

ValuableCallback(ValuableCallbackPrototype callback)
This factory only continues existing for backward compatibility. Will be removed in a future release
factory
ValuableCallback.future(ValuableCallbackPrototype callback)
A callback that schedule execution in the event queue, after a watched Valuable change
factory
ValuableCallback.immediate(ValuableCallbackPrototype callback)
A callback that will execute immediately after a watched Valuable change
factory
ValuableCallback.microtask(ValuableCallbackPrototype callback)
A callback that schedule execution in the microtask queue, after a watched Valuable change
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valuableContext ValuableContext?
no setterinherited

Methods

call({ValuableContext? valuableContext}) → void
Allow to consider this instance as Function, so it can be used like this :
cleanWatched() → void
inherited
dispose() → void
Cleaning the ValuableCallback
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onValuableChange() → void
Called when a Valuable notify a change.
toString() String
A string representation of this object.
inherited
unwatch(Valuable valuable) → void
Remove listener on the valuable, that may change scope, or that about to be disposed Internal purpose
inherited
watch<T>(Valuable<T> valuable, {ValuableContext? valuableContext, ValuableWatcherSelector<T>? selector}) → T
Watch a valuable, that eventually change
inherited

Operators

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