sceneFlushScheduler top-level property
void Function(void flush())
sceneFlushScheduler
getter/setter pair
How a batch of fx writes schedules its coalesced flush. The default coalesces on a microtask — right for a headless process, where nothing frames. A Flutter process installs the frame-aligned one (post-frame callback + ensureVisualUpdate, the probed 500-writes-to-1-rebuild shape) via the bridge's installSceneFrameFlush.
Implementation
void Function(void Function() flush) sceneFlushScheduler = (flush) {
scheduleMicrotask(flush);
};