sleep method Null safety
- [Duration interval = defaultInterval]
Sleep for the specified time.
Implementation
Future<void> sleep([Duration interval = defaultInterval]) =>
Future.delayed(interval);
Sleep for the specified time.
Future<void> sleep([Duration interval = defaultInterval]) =>
Future.delayed(interval);