sleep method

Future<void> sleep(
  1. [Duration interval = defaultInterval]
)

Sleep for the specified time.

Implementation

Future<void> sleep([Duration interval = defaultInterval]) =>
    Future.delayed(interval);