pumpFor abstract method

Future<void> pumpFor(
  1. Duration duration, {
  2. Duration step,
})

Pumps for a total duration, advancing time in steps.

Works in both automated (fake async) and live/preview (real async) bindings. Use after a widget is visible to let animations/loading settle, or to drain pending timers at the end of a test.

Implementation

Future<void> pumpFor(Duration duration, {Duration step});