Sleep with Flutter
It's a small story.
It's a memorandum because I google it every time 😅
How to pause or delay processing in Flutter? (Like sleep in PHP)
- Pause processing by specifying the number of seconds
import 'dart:io';
sleep(Duration(seconds: 1));
- Run an empty asynchronous process specifying the number of seconds
await Future.delayed(Duration(seconds: 1));
Comments !