Flutter – Why does not "await" work in async method?
Why does not "await" work? Future<void> f1() async{ Future.delayed(Duration(seconds:2), (){ print('f1'); }); } void main() async{ print('start'); await f1(); print('end'); } output start end f1 but await working in next code. Future<void> f1() async{ return Future.delayed(Duration(seconds:2), (){ print('f1'); }); }…