build static method

GenerateConfig build({
  1. required String baseName,
  2. required RawConfig config,
  3. required String inputDirectoryHint,
  4. required List<PopulatedContextType> contexts,
  5. required List<Interface> interfaces,
})

Implementation

static GenerateConfig build({
  required String baseName,
  required RawConfig config,
  required String inputDirectoryHint,
  required List<PopulatedContextType> contexts,
  required List<Interface> interfaces,
}) {
  return GenerateConfig(
    buildConfig: config.toBuildModelConfig(),
    inputDirectoryHint: inputDirectoryHint,
    baseName: baseName,
    baseLocale: config.baseLocale,
    fallbackStrategy: config.fallbackStrategy.toGenerateFallbackStrategy(),
    outputFileName: config.outputFileName,
    outputFormat: config.outputFormat,
    localeHandling: config.localeHandling,
    flutterIntegration: config.flutterIntegration,
    translateVariable: config.translateVar,
    enumName: config.enumName,
    className: config.className,
    translationClassVisibility: config.translationClassVisibility,
    renderFlatMap: config.renderFlatMap,
    translationOverrides: config.translationOverrides,
    renderTimestamp: config.renderTimestamp,
    renderStatistics: config.renderStatistics,
    contexts: contexts,
    interface: interfaces,
    obfuscation: config.obfuscation,
    imports: config.imports,
  );
}