How to test Flutter app where there is an async call in initState()?

Posted by Jessica Taylor | Updated on | Flutter

Want to test Flutter app where there is an async call in initState()? Consider using a FutureBuilder if your build method relies on async work.

You can also update your test code like this:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers