fluttre how to sleep code example
Example 1: sleep in dart
import 'dart:io';
main() {
sleep(const Duration(seconds:1));
}
Example 2: thread sleep daret
sleep(const Duration(seconds: 5));
import 'dart:io';
main() {
sleep(const Duration(seconds:1));
}
sleep(const Duration(seconds: 5));