sleep in flutter not working 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));