WatcherRaw<T> class mixin

A raw watcher that can be used to track dependencies.

Implementers

Constructors

WatcherRaw.new()

Properties

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

Methods

addDepend(ReactiveNotifier ref) → void
Adds a dependency to this watcher.
dispose2() → void
Disposes of the watcher.
getCC() Picker?
Gets the current compute.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCleanup(VoidCallback callback) → void
Registers a cleanup function to be called when the watcher is disposed.
run() → T
Runs the watcher and returns the result.
setCC(Picker cc) Picker
Sets the current compute.
toString() String
A string representation of this object.
inherited

Operators

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