CollectionRules constructor

CollectionRules({
  1. RuleCondition? creat,
  2. RuleCondition? read,
  3. RuleCondition? update,
  4. RuleCondition? delete,
  5. bool? isPublic,
  6. bool? isExcluded,
  7. bool? deleteWhenUserIsDeleted,
})

Implementation

factory CollectionRules({
  RuleCondition? creat,
  RuleCondition? read,
  RuleCondition? update,
  RuleCondition? delete,
  $core.bool? isPublic,
  $core.bool? isExcluded,
  $core.bool? deleteWhenUserIsDeleted,
}) {
  final result = create();
  if (creat != null) result.creat = creat;
  if (read != null) result.read = read;
  if (update != null) result.update = update;
  if (delete != null) result.delete = delete;
  if (isPublic != null) result.isPublic = isPublic;
  if (isExcluded != null) result.isExcluded = isExcluded;
  if (deleteWhenUserIsDeleted != null)
    result.deleteWhenUserIsDeleted = deleteWhenUserIsDeleted;
  return result;
}