markMicrotaskScheduled method
void
markMicrotaskScheduled()
inherited
Records that a microtask has been scheduled by the user-mode app.
Wired by LeonardBinding.stabilityZoneSpec via a
ZoneSpecification.scheduleMicrotask interceptor; tests may also
call this directly. The flag flips back to false on the next
microtask boundary.
Internal to the leonard_flutter package — not exported. The
reset microtask is scheduled via Zone.root so it cannot be
re-intercepted by the stability ZoneSpecification (which would
otherwise recurse).
Implementation
void markMicrotaskScheduled() {
if (!_enabled) return;
_microtaskPending = true;
Zone.root.scheduleMicrotask(() {
_microtaskPending = false;
});
}