build static method
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,
);
}