ChangeToken class abstract
Propagates notifications that a change has occurred.
Constructors
Properties
- activeChangeCallbacks → bool
-
Indicates if this token will pro-actively raise callbacks.
If
false
, the token consumer must pollHasChanged
to detect changes.no setter - hasChanged → bool
-
Gets a value that indicates if a change has occurred.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
registerChangeCallback(
ChangeCallback callback, [Object state]) → Disposable? - Registers for a callback that will be invoked when the entry has changed.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
onChange(
ChangeTokenProducer changeTokenProducer, ChangeTokenConsumer changeTokenConsumer) → Disposable -
onStateChange<
TState> (ChangeTokenProducer changeTokenProducer, ChangeTokenTypedConsumer< TState> changeTokenConsumer, TState state) → Disposable -
Registers the
changeTokenConsumer
action to be called whenever the token produced changes.