dispatchLocalesChanged method
Notify all the observers that the locale has changed (using
WidgetsBindingObserver.didChangeLocales), giving them the
locales
argument.
This is called by handleLocaleChanged when the PlatformDispatcher.onLocaleChanged notification is received.
Implementation
@protected
@mustCallSuper
void dispatchLocalesChanged(List<Locale>? locales) {
for (final WidgetsBindingObserver observer in List<WidgetsBindingObserver>.of(_observers)) {
observer.didChangeLocales(locales);
}
}