baseLocale property

Locale baseLocale

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


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.


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

  if (locale != _baseLocale) {
    _baseLocale = locale;