getDocs method

Future<TypedQuerySnapshot<D>> getDocs([
  1. GetOptions? options
])

Fetch the documents for this query

Implementation

Future<TypedQuerySnapshot<D>> getDocs([GetOptions? options]) async {
  final qs = await _inner.get(options);

  return TypedQuerySnapshot(
    qs.docChanges,
    qs.docs
        .map((ds) => DocSnapshot<D>._fromSnapshot(_firestore, ds))
        .toList(growable: false),
    qs.metadata,
  );
}