wait method

Future<void> wait()

Delays execution for the duration of this Duration.

Example:

await 2.seconds.wait();

Implementation

Future<void> wait() async {
  await Future.delayed(this);
}