void main() { print('시작'); var future = Future.delayed(Duration(seconds: 2)); future.then((value) => print('끝')); //한줄일때 future.then((value) { print('끝') }); //두줄일때 }