getLocaleMap method
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.',
));