RawConfig constructor

RawConfig({
  1. required I18nLocale baseLocale,
  2. required FallbackStrategy fallbackStrategy,
  3. required String? inputDirectory,
  4. required String inputFilePattern,
  5. required String? outputDirectory,
  6. required String outputFileName,
  7. required OutputFormat outputFormat,
  8. required bool localeHandling,
  9. required bool flutterIntegration,
  10. required bool namespaces,
  11. required String translateVar,
  12. required String enumName,
  13. required String className,
  14. required TranslationClassVisibility translationClassVisibility,
  15. required CaseStyle? keyCase,
  16. required CaseStyle? keyMapCase,
  17. required CaseStyle? paramCase,
  18. required StringInterpolation stringInterpolation,
  19. required bool renderFlatMap,
  20. required bool translationOverrides,
  21. required bool renderTimestamp,
  22. required bool renderStatistics,
  23. required List<String> maps,
  24. required PluralAuto pluralAuto,
  25. required String pluralParameter,
  26. required List<String> pluralCardinal,
  27. required List<String> pluralOrdinal,
  28. required List<ContextType> contexts,
  29. required List<InterfaceConfig> interfaces,
  30. required ObfuscationConfig obfuscation,
  31. required List<String> imports,
  32. 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;