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,
})

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,
}) {
  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,
  );
}