baseLocale property

Locale baseLocale

Returns the base Locale of the app, defaults to English with no associated country.

Implementation

static Locale get baseLocale => _baseLocale;
void baseLocale=(Locale locale)

Sets a new base Locale of the app.

This will cause the internal cache to be cleared when value is indeed different than the current one.

Implementation

static set baseLocale(Locale locale) {
  assert(null != locale);

  if (locale != _baseLocale) {
    _cache.clear();
    _baseLocale = locale;
  }
}