Firebase – Flutter Firestore – Catching exceptions when listening to data streams
When fetching all documents of a collection from Firestore using the get() method, by default it won't throw an exception if there is no internet connection. Instead it looks up the cache and returns cached data. But sometimes you need…