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