How do I add async to initState Flutter?

Another method would be to create an async method and call it from your initState ( ) a method is shown below: @override void initState() { super. initState(); asyncMethod(); } void asyncMethod() async { await asyncCall1(); await asyncCall2(); // …. }30 Haz 2021

Sizin İçin Seçtik  What is void Dispose in flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *