Localizations.withSheetData constructor

Localizations.withSheetData(
  1. L10nSheet sheetData, {
  2. required String outputFileName,
  3. required String className,
  4. required bool genExtension,
})

Implementation

Localizations.withSheetData(
  super.sheetData, {
  required this.outputFileName,
  required this.className,
  required this.genExtension,
})  : exporters = [
        const _Localizations(),
        for (final language in sheetData.languages)
          _LocalizationsLanguage(
            language: language,
          ),
        if (genExtension) ...[
          const _LocalizationsExtension(),
          for (final language in sheetData.languages)
            _LocalizationsExtensionLanguage(
              language: language,
            ),
        ],
      ],
      super.withSheetData();