DbCollection constructor
DbCollection(
- String collectionName, {
- JsonSchema? createSchema,
- JsonSchema? updateSchema,
- List<
Trigger> ? triggers, - PermissionHandler? permissionHandler,
- String? identifier,
- JsonSchema? resourceSchemaOnUpdate,
Implementation
DbCollection(
this.collectionName, {
JsonSchema? createSchema,
JsonSchema? updateSchema,
this.triggers,
PermissionHandler? permissionHandler,
this.identifier,
JsonSchema? resourceSchemaOnUpdate,
}) : permissionHandler = _getHandler(
permissionHandler: permissionHandler,
createSchema: createSchema,
resourceSchemaOnUpdate: resourceSchemaOnUpdate,
updateSchema: updateSchema),
hasSchema = resourceSchemaOnUpdate != null ||
createSchema != null ||
updateSchema != null;