copyWithout method

GenerateDartModel copyWithout({
  1. bool className = true,
  2. bool fields = true,
  3. bool shouldInherit = true,
  4. bool inheritanceConstructor = true,
  5. bool keyStringCase = true,
  6. bool description = true,
  7. bool tableName = true,
  8. bool schema = true,
  9. bool indexes = true,
})

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

Implementation

GenerateDartModel copyWithout({
  bool className = true,
  bool fields = true,
  bool shouldInherit = true,
  bool inheritanceConstructor = true,
  bool keyStringCase = true,
  bool description = true,
  bool tableName = true,
  bool schema = true,
  bool indexes = true,
}) {
  return GenerateDartModel.assertRequired(
    className: className ? this.className : null,
    fields: fields ? this.fields : null,
    shouldInherit: shouldInherit ? this.shouldInherit : null,
    inheritanceConstructor:
        inheritanceConstructor ? this.inheritanceConstructor : null,
    keyStringCase: keyStringCase ? this.keyStringCase : null,
    description: description ? this.description : null,
    tableName: tableName ? this.tableName : null,
    schema: schema ? this.schema : null,
    indexes: indexes ? this.indexes : null,
  );
}