copyWith method

RawConfig copyWith({
  1. I18nLocale? baseLocale,
  2. FallbackStrategy? fallbackStrategy,
  3. String? inputFilePattern,
  4. String? outputFileName,
  5. OutputFormat? outputFormat,
  6. bool? localeHandling,
  7. bool? flutterIntegration,
  8. bool? namespaces,
  9. TranslationClassVisibility? translationClassVisibility,
  10. CaseStyle? keyCase,
  11. CaseStyle? keyMapCase,
  12. bool? renderFlatMap,
  13. bool? translationOverrides,
  14. bool? renderTimestamp,
  15. bool? renderStatistics,
  16. List<String>? maps,
  17. PluralAuto? pluralAuto,
  18. List<String>? pluralCardinal,
  19. List<String>? pluralOrdinal,
  20. List<ContextType>? contexts,
  21. List<InterfaceConfig>? interfaces,
  22. ObfuscationConfig? obfuscation,
})

Implementation

RawConfig copyWith({
  I18nLocale? baseLocale,
  FallbackStrategy? fallbackStrategy,
  String? inputFilePattern,
  String? outputFileName,
  OutputFormat? outputFormat,
  bool? localeHandling,
  bool? flutterIntegration,
  bool? namespaces,
  TranslationClassVisibility? translationClassVisibility,
  CaseStyle? keyCase,
  CaseStyle? keyMapCase,
  bool? renderFlatMap,
  bool? translationOverrides,
  bool? renderTimestamp,
  bool? renderStatistics,
  List<String>? maps,
  PluralAuto? pluralAuto,
  List<String>? pluralCardinal,
  List<String>? pluralOrdinal,
  List<ContextType>? contexts,
  List<InterfaceConfig>? interfaces,
  ObfuscationConfig? obfuscation,
}) {
  return RawConfig(
    baseLocale: baseLocale ?? this.baseLocale,
    fallbackStrategy: fallbackStrategy ?? this.fallbackStrategy,
    inputDirectory: inputDirectory,
    inputFilePattern: inputFilePattern ?? this.inputFilePattern,
    outputDirectory: outputDirectory,
    outputFileName: outputFileName ?? this.outputFileName,
    outputFormat: outputFormat ?? this.outputFormat,
    localeHandling: localeHandling ?? this.localeHandling,
    flutterIntegration: flutterIntegration ?? this.flutterIntegration,
    namespaces: namespaces ?? this.namespaces,
    translateVar: translateVar,
    enumName: enumName,
    className: className,
    translationClassVisibility:
        translationClassVisibility ?? this.translationClassVisibility,
    keyCase: keyCase ?? this.keyCase,
    keyMapCase: keyMapCase ?? this.keyMapCase,
    paramCase: paramCase,
    stringInterpolation: stringInterpolation,
    renderFlatMap: renderFlatMap ?? this.renderFlatMap,
    translationOverrides: translationOverrides ?? this.translationOverrides,
    renderTimestamp: renderTimestamp ?? this.renderTimestamp,
    renderStatistics: renderStatistics ?? this.renderStatistics,
    maps: maps ?? this.maps,
    pluralAuto: pluralAuto ?? this.pluralAuto,
    pluralParameter: pluralParameter,
    pluralCardinal: pluralCardinal ?? this.pluralCardinal,
    pluralOrdinal: pluralOrdinal ?? this.pluralOrdinal,
    contexts: contexts ?? this.contexts,
    interfaces: interfaces ?? this.interfaces,
    obfuscation: obfuscation ?? this.obfuscation,
    imports: imports,
    rawMap: rawMap,
  );
}