getLocaleData method

Map<String, dynamic>? getLocaleData(
  1. String locale
)

The merged locale data for locale, or null if locale has not been loaded. Data is resolved lazily from the file cache on first access.

locale is normalized so the cache key matches the one used by loadILibLocaleData (store) and clearLocale (drop); otherwise an un-normalized spelling such as ko_KR would miss the ko-KR entry.

Implementation

Map<String, dynamic>? getLocaleData(String locale) {
  final String key = normalizeLocale(locale);
  return _localeDataMap[key] ?? _mergeFromCache(key);
}