sleep function

dynamic sleep(
  1. int seconds
)

Sleep for a given amount of seconds.

Implementation

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