changeLanguage static method

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

Update the language in the application

Implementation

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