streamList method

Stream<List<T>> streamList()

Returns list of all the documents from collection as a stream so that changes can be listened

Implementation

Stream<List<T>> streamList() {
  var ref = _db.collection(collection);
  return ref.snapshots().map(
      (list) => list.docs.map((doc) => fromDS(doc.id, doc.data())).toList());
}