Sep 4, 2018 · 1 min read
I encountered an async exception while using this method of snapshot.hasData that froze my widget rendering, and occasionally crashed the app. I have had better results sticking to the documentation in the form of using a switch statement with ConnectionState.<connectionState>