getDocumentsInCollection method

  1. @override
Future<List<DocumentSnapshot>> getDocumentsInCollection(
  1. CollectionReference reference
)
override

Implementation

@override
Future<List<DocumentSnapshot>> getDocumentsInCollection(
        CollectionReference reference) =>
    reference._ref.get().then((value) => value.docs
        .map((e) => DocumentSnapshot(
            _doc(this, e.reference), e.exists ? e.data() : null))
        .toList());