preStepSleep method

Future<void> preStepSleep(
  1. Duration duration
)

Gives the test step an opportunity to sleep before the step has been executed. Steps that do not interact with the application may choose to override this and reduce or elimate the delay.

Implementation

Future<void> preStepSleep(Duration duration) async =>
    await Future.delayed(duration);