doc method
- [String? path]
Gets a DocumentReference for the document at the specified path.
Parameters:
path: Optional path for the document (auto-generated if null).
Returns: A DocumentReference instance.
Example:
var docRef = collection.doc('user1');
Implementation
DocumentReference<T> doc([String? path]) {
path ??= generateRandomString(15);
DocumentReference<T> doc = DocumentReference(
helper: QueryHelper(),
oracledb: _oracledb,
path: "${_path.join('/')}/$path",
parent_: this);
doc.toConverter = toConverter;
doc.fromConverter = fromConverter;
return doc;
}