queueDirtyFlush static method
- void callback()
Queues callback (deduplicated) to run once, after every pending
ListenerRegistry has already been flushed, when the outermost batch
ends. Used by Computed to recompute (and, if changed, notify) marked
-dirty derived values exactly once per batch, after all of their
upstream dependencies have already settled to their final value — see
the "diamond glitch" note on Computed's class doc.
Enfileira callback (deduplicado) para rodar uma vez, depois que todo
ListenerRegistry pendente já tiver sido esvaziado, quando o batch
mais externo terminar. Usado por Computed para recalcular (e, se
mudou, notificar) valores derivados marcados como sujos exatamente uma
vez por batch, depois que todas as suas dependências a montante já
tiverem se estabilizado no valor final — ver a nota sobre "glitch do
diamante" no doc da classe Computed.
Implementation
static void queueDirtyFlush(void Function() callback) {
_dirtyFlushCallbacks.add(callback);
}