initLocale method

void initLocale(
  1. String locale
)

Initialize the repository for a new locale. If one already exists, it will not be overwritten.

Implementation

void initLocale(String locale) {
  _cache[locale] ??= create();
}