Index of the next effect to flush from queued.
Example:
while (notifyIndex < queuedLength) { final effect = queued[notifyIndex++]!; runEffect(effect); }
int notifyIndex = 0;