Watcher<T> mixin

A mixin that provides watcher functionality to a ReactiveNotifier.

Superclass constraints
Mixin applications

Properties

computes Map<int, Picker>
A map of computes that are used by this watcher.
getter/setter pairinherited
currentIndexCompute int
The current index of the compute being used.
getter/setter pairinherited
dryRun ↔ T Function()
A function that is called to track dependencies.
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
mounted bool
Whether the notifier is mounted.
no setterinherited
onChange VoidCallback
A callback that is called when the watcher's dependencies change.
latefinalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
The current value of the notifier.
no setterinherited
watchers Set<ReactiveNotifier>
The set of notifiers that this watcher is listening to.
getter/setter pairinherited

Methods

addDepend(ReactiveNotifier ref) → void
Adds a dependency to this watcher.
inherited
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
dispose2() → void
Disposes of the watcher.
inherited
getCC() Picker?
Gets the current compute.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onCleanup(VoidCallback callback) → void
Registers a cleanup function to be called when the watcher is disposed.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
run() → T
Runs the watcher and returns the result.
inherited
select<U>(U getter(T value)) Computed<U>
Creates a Computed that selects a value from the notifier.
inherited
setCC(Picker cc) Picker
Sets the current compute.
inherited
toString() String
A string representation of this object.
inherited

Operators

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