doc method
- [String? path]
override
Gets a reference to a document in the collection.
Parameters:
path: Optional path to the document.
Returns: A DualityViewDocReference.
Example:
var docRef = colRef.doc('docId');
Implementation
@override
/// Gets a reference to a document in the collection.
///
/// Parameters:
/// - [path]: Optional path to the document.
///
/// Returns:
/// A [DualityViewDocReference].
///
/// Example:
/// ```dart
/// var docRef = colRef.doc('docId');
/// ```
DualityViewDocReference<T> doc([String? path]) {
path ??= generateRandomString(15);
DualityViewDocReference<T> newDoc = DualityViewDocReference(
helper: QueryHelper(),
oracledb: _oracledb,
path: "${_path.join('/')}/$path",
parent_: this);
newDoc.toConverter = toConverter;
newDoc.fromConverter = fromConverter;
return newDoc;
}