getDocumentWindows<T extends Object?> function

Future<DocumentSnapshotForAll<T>> getDocumentWindows<T extends Object?>(
  1. DocumentReference ref, {
  2. required DocRef<T> docRef,
})

Implementation

Future<DocumentSnapshotForAll<T>> getDocumentWindows<T extends Object?>(
    DocumentReference ref,
    {required DocRef<T> docRef}) async {
  late DocumentSnapshotForAll<T> doc;
  await ref.get().then((value) {
    doc = DocumentSnapshotForAll<T>(value.map, value.id, value.id, docRef);
  });
  return doc;
}