get method
Method to get all data in the document.
Example:
Data documentData = documentRef.get();
Implementation
Future<InAppDocumentSnapshot> get() {
return _db
._r(
reference: reference,
collectionPath: _p.path,
collectionId: _p.id,
documentId: id,
type: InAppReadType.document,
)
.then((_) {
return _ is InAppDocumentSnapshot ? _ : InAppDocumentSnapshot(id);
});
}