changeLanguage static method

dynamic changeLanguage(
  1. dynamic state, {
  2. required String language,
  3. bool restartState = true,
})

Update the language in the application

Implementation

static changeLanguage(dynamic state,
    {required String language, bool restartState = true}) {
  _updateState(_findStateName(state), "change-language", {
    "language": language,
    "restartState": restartState,
  });
}