copyWithout method

FieldModel copyWithout({
  1. bool fieldPath = true,
  2. bool fieldType = true,
  3. bool nullable = true,
  4. bool children = true,
  5. bool primaryKey = true,
  6. bool foreignKey = true,
  7. bool fallback = true,
  8. bool description = true,
})

Creates a copy of this instance, removing the specified fields.

Implementation

FieldModel copyWithout({
  bool fieldPath = true,
  bool fieldType = true,
  bool nullable = true,
  bool children = true,
  bool primaryKey = true,
  bool foreignKey = true,
  bool fallback = true,
  bool description = true,
}) {
  return FieldModel.assertRequired(
    fieldPath: fieldPath ? this.fieldPath : null,
    fieldType: fieldType ? this.fieldType : null,
    nullable: nullable ? this.nullable : null,
    children: children ? this.children : null,
    primaryKey: primaryKey ? this.primaryKey : null,
    foreignKey: foreignKey ? this.foreignKey : null,
    fallback: fallback ? this.fallback : null,
    description: description ? this.description : null,
  );
}