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