clearLocale method

void clearLocale(
  1. String locale
)

Drop locale's merged data to reclaim memory. Safe at runtime: iLib stays ready and the shared file cache is kept, so getLocaleData re-merges it cheaply on next access.

Implementation

void clearLocale(String locale) {
  _localeDataMap.remove(normalizeLocale(locale));
}