delay method

Future<void> delay(
  1. Duration duration
)

Implementation

Future<void> delay(Duration duration) {
  return simulateDelays ? Future.delayed(duration) : Future.value();
}