Answers for "flutter future wait 2 seconds"

5

flutter wait for specific time

await Future.delayed(const Duration(seconds: 2), (){});
Posted by: Guest on August-12-2020
1

sleep in dart

import 'dart:io';

main() {
  sleep(const Duration(seconds:1));
}
Posted by: Guest on November-01-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language