notify method
void
notify()
Forces subscribers to update without changing pendingValue.
Clears the committed value, marks the node dirty, and propagates. Use this after in-place mutations when the stored reference is unchanged.
Example:
final node = SignalNode<List<int>>([1, 2]);
node.pendingValue!.add(3);
node.notify();
Implementation
void notify() {
if (!isDisposed) {
assert(() {
JoltDevTools.notify(this);
return true;
}());
flags = ReactiveFlags.mutable | ReactiveFlags.dirty;
value = null;
if (subs != null) {
propagate(subs!, runDepth > 0);
shallowPropagate(subs!);
if (batchDepth == 0) {
flushEffects();
}
}
}
}