SignalNode<T> class
base
A signal node that holds a mutable value.
SignalNode is the underlying node for Signal values. It stores both the current value and a pending value to support batched updates.
Example:
final node = SignalNode(42);
print(node.currentValue); // 42
node.pendingValue = 100;
node.applyPending(); // Returns true if value changed
print(node.currentValue); // 100
- Inheritance
-
- Object
- ReactiveNode
- SignalNode
- Implementers
Constructors
- SignalNode(T value)
Properties
- currentValue ↔ T
-
The current committed value of the signal.
getter/setter pair
- deps ↔ Link?
-
Head of the dependency linked list.
getter/setter pairinherited
- depsTail ↔ Link?
-
Tail of the dependency linked list.
getter/setter pairinherited
- flags ↔ ReactiveFlags
-
State flags for this node.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- nextEffect ↔ ReactiveNode?
-
Next effect in the effect queue.
getter/setter pairinherited
- pendingValue ↔ T
-
The pending value waiting to be applied.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subs ↔ Link?
-
Head of the subscriber linked list.
getter/setter pairinherited
- subsTail ↔ Link?
-
Tail of the subscriber linked list.
getter/setter pairinherited
Methods
-
applyPending(
) → bool - Applies the pending value and returns whether the value changed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited