delayed method Null safety

  1. @override
Future<void> delayed (
  1. Duration duration
)
override

Delay for duration of time.

In the automated test environment (AutomatedTestWidgetsFlutterBinding, typically used in flutter test), this advances the fake clock for the period and also increases timeout (see addTime).

In the live test environemnt (LiveTestWidgetsFlutterBinding, typically used for flutter run and for e2e), it is equivalent as Future.delayed.

Implementation

@override
Future<void> delayed(Duration duration) {
  return Future<void>.delayed(duration);
}