Future<Null> pump([Duration duration, EnginePhase newPhase = EnginePhase.sendSemanticsTree ])

Triggers a frame sequence (build/layout/paint/etc), then flushes microtasks.

If duration is set, then advances the clock by that much first. Doing this flushes microtasks.

The supplied EnginePhase is the final phase reached during the pump pass; if not supplied, the whole pass is executed.

Source

Future<Null> pump([ Duration duration, EnginePhase newPhase = EnginePhase.sendSemanticsTree ]);