didChangeLocales method

  1. @override
  2. @mustCallSuper
void didChangeLocales(
  1. List<Locale>? locales
)
inherited

Called when the system tells the app that the user's locale has changed. For example, if the user changes the system language settings.

Implementation

@override
@mustCallSuper
void didChangeLocales(List<Locale>? locales) {
  super.didChangeLocales(locales);
  //
  forEachState((state) {
    state.didChangeLocales(locales);
  }, reversed: true, remove: this);
}