In Async Code
await Future.delayed(Duration(seconds: 1));
or
await Future.delayed(Duration(seconds: 1),()=>function());
// 1초 뒤 함수실행
In Sync Code
import 'dart:io';
sleep(Duration(seconds:1));
참고 :: https://stackoverflow.com/questions/18449846/how-can-i-sleep-a-dart-program