sleep function

dynamic sleep(
  1. int seconds
)

Sleep for a given amount of milliseconds.

Implementation

sleep(int seconds) async {
  await Future.delayed(Duration(seconds: seconds));
}