dispatchLocalesChanged method

  1. @protected
  2. @mustCallSuper
void dispatchLocalesChanged(
  1. List<Locale> locales
)

Notify all the observers that the locale has changed (using ElementsBindingObserver.didChangeLocales), giving them the locales argument.

This is called by handleLocaleChanged when the Window.onLocaleChanged notification is received.

Implementation

@protected
@mustCallSuper
void dispatchLocalesChanged(List<Locale> locales) {
  for (ElementsBindingObserver observer in _observers) observer.didChangeLocales(locales);
}