pump method

Future<void> pump (Duration duration)

Called to indicate that time should advance.

This is invoked by flingFrom, for instance, so that the sequence of pointer events occurs over time.

The WidgetTester subclass implements this by deferring to the binding.

See also SchedulerBinding.endOfFrame, which returns a future that could be appropriate to return in the implementation of this method.

Implementation

Future<void> pump(Duration duration);