copyWith method
CatalogConfig
copyWith(
{ - int? version,
- String? langDir,
- CatalogFileFormat? format,
- String? fallbackLocale,
- String? sourceLocale,
- bool clearSourceLocale = false,
- String? stateFile,
- int? uiPort,
- int? apiPort,
- bool? openBrowser,
- String? arbFilePrefix,
- bool? hideCatalogUiKeys,
- bool? autoGenerateDictionary,
})
Implementation
CatalogConfig copyWith({
int? version,
String? langDir,
CatalogFileFormat? format,
String? fallbackLocale,
String? sourceLocale,
bool clearSourceLocale = false,
String? stateFile,
int? uiPort,
int? apiPort,
bool? openBrowser,
String? arbFilePrefix,
bool? hideCatalogUiKeys,
bool? autoGenerateDictionary,
}) {
return CatalogConfig(
version: version ?? this.version,
langDir: langDir ?? this.langDir,
format: format ?? this.format,
fallbackLocale: fallbackLocale ?? this.fallbackLocale,
sourceLocale: clearSourceLocale ? null : (sourceLocale ?? this.sourceLocale),
stateFile: stateFile ?? this.stateFile,
uiPort: uiPort ?? this.uiPort,
apiPort: apiPort ?? this.apiPort,
openBrowser: openBrowser ?? this.openBrowser,
arbFilePrefix: arbFilePrefix ?? this.arbFilePrefix,
hideCatalogUiKeys: hideCatalogUiKeys ?? this.hideCatalogUiKeys,
autoGenerateDictionary: autoGenerateDictionary ?? this.autoGenerateDictionary,
);
}