doc method
- String documentPath
Gets a reference to a document.
Parameters:
documentPath: The path to the document.
Returns: A DocumentReference.
Example:
var docRef = db.doc('users/user1');
Implementation
DocumentReference<Map<String, dynamic>> doc(String documentPath) {
// Change the assertion message
assert(
documentPath.isNotEmpty,
'a document path must be a non-empty string',
);
assert(
!documentPath.contains('//'),
'a collection path must not contain "//"',
);
return DocumentReference(
helper: QueryHelper(),
oracledb: instanceFor(app: app),
path: documentPath,
);
}