async method in initstate flutter code example
Example: flutter async initstate
void initState() {
super.initState();
asyncMethod(); // async is not allowed in initState()
}
void asyncMethod() async {
await asyncCall1();
await asyncCall2();
// ....
}