📅  最后修改于: 2022-03-11 14:48:02.649000             🧑  作者: Mango
@override
void initState() {
super.initState();
asyncMethod(); // async is not allowed in initState()
}
void asyncMethod() async {
await asyncCall1();
await asyncCall2();
// ....
}