get method

Future<DocumentSnapshot> get(
  1. DocumentReference documentReference
)

Reads the document referenced by the provided DocumentReference.

If the document changes whilst the transaction is in progress, it will be re-tried up to five times.

Implementation

Future<DocumentSnapshot> get(DocumentReference documentReference) async {
  DocumentSnapshotPlatform documentSnapshotPlatform =
      await _delegate.get(documentReference.path);

  return DocumentSnapshot._(_firestore, documentSnapshotPlatform);
}