pumpFor method
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
@override
Future<void> pumpFor(
Duration duration, {
Duration step = const Duration(milliseconds: 100),
}) async {
debugPrint('⏳ [NativeAction] Pumping for $duration...');
await pumpForDuration(_tester, duration: duration, step: step);
}