streamDocumentsInCollection method

  1. @override
Stream<List<DocumentSnapshot>> streamDocumentsInCollection(
  1. CollectionReference reference
)
override

Implementation

@override
Stream<List<DocumentSnapshot>> streamDocumentsInCollection(
        CollectionReference reference) =>
    reference._ref.snapshots().map((event) => event.docs
        .map((e) => DocumentSnapshot(
            _doc(this, e.reference), e.exists ? e.data() : null))
        .toList());