copyWith method

GeneratorOptions copyWith({
  1. String? defaultLocale,
  2. String? className,
  3. bool? format,
  4. bool? mangle,
  5. bool? builtin,
  6. bool? debug,
  7. bool? pruneUnused,
  8. bool? promoteLater,
  9. bool? dryRun,
  10. String? source,
  11. String? output,
})

Implementation

GeneratorOptions copyWith({
  String? defaultLocale,
  String? className,
  bool? format,
  bool? mangle,
  bool? builtin,
  bool? debug,
  bool? pruneUnused,
  bool? promoteLater,
  bool? dryRun,
  String? source,
  String? output,
}) => GeneratorOptions(
  defaultLocale: defaultLocale ?? this.defaultLocale,
  className: className ?? this.className,
  format: format ?? this.format,
  mangle: mangle ?? this.mangle,
  builtin: builtin ?? this.builtin,
  debug: debug ?? this.debug,
  pruneUnused: pruneUnused ?? this.pruneUnused,
  promoteLater: promoteLater ?? this.promoteLater,
  dryRun: dryRun ?? this.dryRun,
  source: source ?? this.source,
  output: output ?? this.output,
);