dualityViewCollection method
- String name
Gets a reference to a duality view collection.
Parameters:
name: The name of the duality view.
Returns: A DualityViewColReference.
Example:
var viewCol = db.dualityViewCollection('userView');
Implementation
DualityViewColReference<Map<String, dynamic>> dualityViewCollection(
String name,
) {
// Change the assertion message
assert(name.isNotEmpty, 'a collectionPath path must be a non-empty string');
assert(!name.contains('//'), 'a collection path must not contain "//"');
return DualityViewColReference(
helper: QueryHelper(),
oracledb: instanceFor(app: app),
path: name,
);
}