get method

Reads the document referenced by the provided DocumentReference.

The DocumentReference parameter is a reference to the document to be retrieved. Value must not be null.

Returns non-null Future of the read data in a DocumentSnapshot.

Implementation

Future<DocumentSnapshot> get(DocumentReference documentRef) =>
    handleThenable(jsObject.get(documentRef.jsObject))
        .then(DocumentSnapshot.getInstance);