notify method
Called during propagate for nodes flagged ReactiveFlags.watching. Implementations typically queue the node for execution after the current write/batch completes.
Chamado durante propagate para nós com ReactiveFlags.watching. Implementações tipicamente enfileiram o nó para execução após a escrita/batch atual completar.
Implementation
@override
void notify(ReactiveNode node) {
if (node is WatcherNode) {
// Strip `watching` so repeated writes in the same wave don't
// re-notify; the owner restores it after the scheduled pull runs.
// Remove `watching` para que escritas repetidas na mesma onda não
// re-notifiquem; o dono restaura após o pull agendado rodar.
node.flags = node.flags & ~ReactiveFlags.watching;
node.onInvalidate();
}
}