DbCollection constructor

DbCollection(
  1. String collectionName, {
  2. JsonSchema? createSchema,
  3. JsonSchema? updateSchema,
  4. List<Trigger>? triggers,
  5. PermissionHandler? permissionHandler,
  6. String? identifier,
  7. 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;