flush method
void
flush()
Flush all queued effects
Implementation
@pragma('vm:prefer-inline')
@pragma('wasm:prefer-inline')
@pragma('dart2js:prefer-inline')
void flush() {
while (notifyIndex < queuedLength) {
final effect = queued[notifyIndex]!;
queued[notifyIndex++] = null;
run(effect);
}
notifyIndex = 0;
queuedLength = 0;
}