INNER CODE UNIT · Dart

_requestedScreenshotLocales

brandonp2412/Flexify · integration_test/screenshot_test.dart:122

List<MapEntry<String, String>> _requestedScreenshotLocales() =>
    _screenshotLocales
        .split(',')
        .map((locale) => locale.trim())
        .where((locale) => locale.isNotEmpty)
        .map(
          (storeLocale) => MapEntry(
            storeLocale,
            _storeLocaleToAppLocale[storeLocale] ??
                (throw ArgumentError.value(
                  storeLocale,
                  'SCREENSHOT_LOCALES',
                  'Unsupported store locale',
                )),
          ),
        )
        .toList(growable: false);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…