sleep(Duration(seconds: 5)); flutter code example
Example: flutter sleep
await Future.delayed(const Duration(seconds: 1));
sleep(const Duration(seconds: 1));
await Future.delayed(const Duration(seconds: 1));
sleep(const Duration(seconds: 1));