Answers for "how to delay in dart"

9

flutter delay

Future.delayed(Duration(milliseconds: 100), () {
  // Do something
});
Posted by: Guest on December-02-2020
4

dart timer delay

Timer(Duration(seconds: 3), () {
  print("Yeah, this line is printed after 3 second");
});

// repeatedly :
Timer.periodic(Duration(seconds: 5), (timer) {
  print(DateTime.now());
});
Posted by: Guest on June-27-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language