RawConfig constructor
RawConfig({
- required I18nLocale baseLocale,
- required FallbackStrategy fallbackStrategy,
- required String? inputDirectory,
- required String inputFilePattern,
- required String? outputDirectory,
- required String outputFileName,
- required OutputFormat outputFormat,
- required bool localeHandling,
- required bool flutterIntegration,
- required bool namespaces,
- required String translateVar,
- required String enumName,
- required String className,
- required TranslationClassVisibility translationClassVisibility,
- required CaseStyle? keyCase,
- required CaseStyle? keyMapCase,
- required CaseStyle? paramCase,
- required StringInterpolation stringInterpolation,
- required bool renderFlatMap,
- required bool translationOverrides,
- required bool renderTimestamp,
- required bool renderStatistics,
- required List<
String> maps, - required PluralAuto pluralAuto,
- required String pluralParameter,
- required List<
String> pluralCardinal, - required List<
String> pluralOrdinal, - required List<
ContextType> contexts, - required List<
InterfaceConfig> interfaces, - required ObfuscationConfig obfuscation,
- required List<
String> imports, - required Map<
String, dynamic> rawMap,
Implementation
RawConfig({
required this.baseLocale,
required this.fallbackStrategy,
required this.inputDirectory,
required this.inputFilePattern,
required this.outputDirectory,
required this.outputFileName,
required this.outputFormat,
required this.localeHandling,
required this.flutterIntegration,
required this.namespaces,
required this.translateVar,
required this.enumName,
required this.className,
required this.translationClassVisibility,
required this.keyCase,
required this.keyMapCase,
required this.paramCase,
required StringInterpolation stringInterpolation,
required this.renderFlatMap,
required this.translationOverrides,
required this.renderTimestamp,
required this.renderStatistics,
required this.maps,
required this.pluralAuto,
required this.pluralParameter,
required this.pluralCardinal,
required this.pluralOrdinal,
required this.contexts,
required this.interfaces,
required this.obfuscation,
required this.imports,
required this.rawMap,
}) : fileType = _determineFileType(inputFilePattern),
stringInterpolation =
_determineFileType(inputFilePattern) == FileType.arb
? StringInterpolation.braces
: stringInterpolation;