getLocaleMap method

Map<String, String> getLocaleMap(
  1. String? locale
)

Like getLocaleData, but throws UnregisteredLocaleException for an undefined locale.

Implementation

Map<String, String> getLocaleMap(String? locale) =>
    getLocaleData(locale) ??
    (throw const UnregisteredLocaleException(
      'Attempted to access an undefined locale.',
    ));