setLocale method

void setLocale(
  1. BaseAppLocale<BaseAppLocale, BaseTranslations> locale
)

Sets the locale and notifies all listeners.

Implementation

void setLocale(BaseAppLocale locale) {
  if (locale == _currLocale) {
    return;
  }
  _currLocale = locale;
  _controller.add(locale);
}