get method
Reads the document referred to by this DocumentReference. Note: get() attempts to provide up-to-date data when possible by waiting for data from the server, but it may return cached data or fail if you are offline and the server cannot be reached.
Returns non-null Future containing non-null DocumentSnapshot
that resolves with a DocumentSnapshot
containing the current document
contents.
Implementation
Future<DocumentSnapshot> get() =>
handleThenable(jsObject.get()).then(DocumentSnapshot.getInstance);