List view throws an error before stream has finished retrieving data
问题 I've been learning Flutter and following an online tutorial regarding Provider package, at present I'm working with StreamProvider . I have a service which connects to Firestore and returns all documents within a collection ('reports'), these documents are then mapped to my report object. Service: class FirestoreService { Firestore _db = Firestore.instance; var random = Random(); Stream<List<Report>> getReports() { return _db.collection('reports') .orderBy('timeStamp', descending: true)