streamAll method

Stream<List<T?>>? streamAll()

To stream all documents call streamAll Stream<List

Implementation

Stream<List<T?>>? streamAll() {
  Stream<QuerySnapshot> snapshot = _collectionReference.snapshots();
  return snapshot.map((event) => event.docs.map<T?>((doc) {
        return _toModel(doc);
      }).toList());
}