copyWith method

WitGeneratorConfig copyWith({
  1. WitGeneratorInput? inputs,
  2. bool? jsonSerialization,
  3. bool? copyWith_,
  4. bool? equalityAndHashCode,
  5. bool? toString_,
  6. bool? generateDocs,
  7. Option<String>? fileHeader,
  8. Option<String>? objectComparator,
  9. bool? useNullForOption,
  10. bool? requiredOption,
  11. Int64TypeConfig? int64Type,
  12. bool? typedNumberLists,
  13. bool? asyncWorker,
  14. bool? sameClassUnion,
})

Returns a new instance by overriding the values passed as arguments

Implementation

WitGeneratorConfig copyWith({
  WitGeneratorInput? inputs,
  bool? jsonSerialization,
  bool? copyWith_,
  bool? equalityAndHashCode,
  bool? toString_,
  bool? generateDocs,
  Option<String>? fileHeader,
  Option<String>? objectComparator,
  bool? useNullForOption,
  bool? requiredOption,
  Int64TypeConfig? int64Type,
  bool? typedNumberLists,
  bool? asyncWorker,
  bool? sameClassUnion,
}) => WitGeneratorConfig(
  inputs: inputs ?? this.inputs,
  jsonSerialization: jsonSerialization ?? this.jsonSerialization,
  copyWith_: copyWith_ ?? this.copyWith_,
  equalityAndHashCode: equalityAndHashCode ?? this.equalityAndHashCode,
  toString_: toString_ ?? this.toString_,
  generateDocs: generateDocs ?? this.generateDocs,
  fileHeader: fileHeader != null ? fileHeader.value : this.fileHeader,
  objectComparator: objectComparator != null
      ? objectComparator.value
      : this.objectComparator,
  useNullForOption: useNullForOption ?? this.useNullForOption,
  requiredOption: requiredOption ?? this.requiredOption,
  int64Type: int64Type ?? this.int64Type,
  typedNumberLists: typedNumberLists ?? this.typedNumberLists,
  asyncWorker: asyncWorker ?? this.asyncWorker,
  sameClassUnion: sameClassUnion ?? this.sameClassUnion,
);