unwatched method

  1. @override
void unwatched()
override

Called when this node loses its last subscriber.

This clears dependency links and marks the node dirty so the next read recomputes from scratch.

Implementation

@override
void unwatched() {
  if (depsTail != null) {
    flags = ReactiveFlags.mutable | ReactiveFlags.dirty;
    _disposeDepsInReverse(this);
  }
}