printConfig method

void printConfig()

Implementation

void printConfig() {
  print(' -> fileType: ${fileType.name}');
  print(' -> baseLocale: ${baseLocale.languageTag}');
  print(' -> fallbackStrategy: ${fallbackStrategy.name}');
  print(' -> inputDirectory: ${inputDirectory ?? 'null (everywhere)'}');
  print(' -> inputFilePattern: $inputFilePattern');
  print(
      ' -> outputDirectory: ${outputDirectory ?? 'null (directory of input)'}');
  print(' -> outputFileName: $outputFileName');
  print(' -> outputFileFormat: ${outputFormat.name}');
  print(' -> localeHandling: $localeHandling');
  print(' -> flutterIntegration: $flutterIntegration');
  print(' -> namespaces: $namespaces');
  print(' -> translateVar: $translateVar');
  print(' -> enumName: $enumName');
  print(' -> translationClassVisibility: ${translationClassVisibility.name}');
  print(
      ' -> keyCase: ${keyCase != null ? keyCase?.name : 'null (no change)'}');
  print(
      ' -> keyCase (for maps): ${keyMapCase != null ? keyMapCase?.name : 'null (no change)'}');
  print(
      ' -> paramCase: ${paramCase != null ? paramCase?.name : 'null (no change)'}');
  print(' -> stringInterpolation: ${stringInterpolation.name}');
  print(' -> renderFlatMap: $renderFlatMap');
  print(' -> translationOverrides: $translationOverrides');
  print(' -> renderTimestamp: $renderTimestamp');
  print(' -> renderStatistics: $renderStatistics');
  print(' -> maps: $maps');
  print(' -> pluralization/auto: ${pluralAuto.name}');
  print(' -> pluralization/default_parameter: $pluralParameter');
  print(' -> pluralization/cardinal: $pluralCardinal');
  print(' -> pluralization/ordinal: $pluralOrdinal');
  print(' -> contexts: ${contexts.isEmpty ? 'no custom contexts' : ''}');
  for (final contextType in contexts) {
    print(
        '    - ${contextType.enumName} { ${contextType.enumValues?.join(', ') ?? '(inferred)'} }');
  }
  print(' -> interfaces: ${interfaces.isEmpty ? 'no interfaces' : ''}');
  for (final interface in interfaces) {
    print('    - ${interface.name}');
    print(
        '        Attributes: ${interface.attributes.isEmpty ? 'no attributes' : ''}');
    for (final a in interface.attributes) {
      print(
          '          - ${a.returnType} ${a.attributeName} (${a.parameters.isEmpty ? 'no parameters' : a.parameters.map((p) => p.parameterName).join(',')})${a.optional ? ' (optional)' : ''}');
    }
    print('        Paths: ${interface.paths.isEmpty ? 'no paths' : ''}');
    for (final path in interface.paths) {
      print(
          '          - ${path.isContainer ? 'children of: ' : ''}${path.path}');
    }
  }
  print(' -> obfuscation: ${obfuscation.enabled ? 'enabled' : 'disabled'}');
  print(' -> imports: $imports');
}