GlobalReactiveSystem class
The global reactive system
- Inheritance
-
- Object
- ReactiveSystem
- GlobalReactiveSystem
Constructors
Properties
- activeSub ↔ ReactiveNode?
-
The currently active effect or scope
getter/setter pair
- batchDepth ↔ int
-
The current batch depth
getter/setter pair
- cycle ↔ int
-
The current cycle number
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- notifyIndex ↔ int
-
The effect index in queue
getter/setter pair
-
queued
→ List<
JEffectNode?> -
The queue of effects to be executed
final
- queuedLength ↔ int
-
The length of the queue of effects to be executed
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkDirty(
Link theLink, ReactiveNode sub) → bool -
Checks if a node is dirty and needs updating.
inherited
-
computedGetter<
T> (Computed< T> computed) → T - Get the current value of a computed, updating if necessary
-
computedNotify<
T> (Computed< T> computed) → void - Force update a computed without changing its value
-
endBatch(
) → void - End a batch update and flush pending effects
-
flush(
) → void - Flush all queued effects
-
getActiveSub(
) → ReactiveNode? -
getBatchDepth(
) → int - Get the current batch depth
-
isValidLink(
Link checkLink, ReactiveNode sub) → bool -
Checks if a link is still valid for a subscriber.
inherited
-
link(
ReactiveNode dep, ReactiveNode sub, int version) → void -
Links a dependency to a subscriber in the reactive graph.
inherited
-
nodeDispose(
ReactiveNode e) → void - Dispose an effect and clean up its dependencies
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(
covariant EffectBaseNode e) → void -
Notify a subscriber about changes
override
-
propagate(
Link theLink) → void -
Propagates changes through the reactive graph.
inherited
-
purgeDeps(
ReactiveNode sub) → void - Purge the dependencies of a reactive node
-
run(
JEffectNode e) → void - Run an effect with the given flags
-
setActiveSub(
ReactiveNode? sub) → ReactiveNode? - Set the currently active subscriber
-
shallowPropagate(
Link theLink) → void -
Shallow propagates changes without deep recursion.
inherited
-
signalGetter<
T> (Signal< T> signal) → T - Get a signal's value and track dependencies
-
signalNotify<
T> (ReadonlySignal< T> signal) → void - Force update a signal without changing its value
-
signalSetter<
T> (Signal< T> signal, T newValue) → T - Set a signal's value and trigger updates
-
startBatch(
) → void - Start a batch update to defer effect execution
-
toString(
) → String -
A string representation of this object.
inherited
-
unlink(
Link link, [ReactiveNode? sub]) → Link? -
Unlinks a dependency from a subscriber.
inherited
-
unwatched(
ReactiveNode node) → void -
Handle cleanup when a node is no longer watched
override
-
update(
ReactiveNode node) → bool -
Update a signal or computed value
override
-
updateComputed<
T> (Computed< T> computed) → bool - Update the computed value and return true if changed
-
updateSignal<
T> (Signal< T> signal) → bool - Update a signal's value and return true if changed
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited