changeLanguage method

void changeLanguage(
  1. String language, {
  2. bool restartState = true,
})

Update the language in the application

Implementation

void changeLanguage(String language, {bool restartState = true}) {
  updatePageState("change-language", {
    "language": language,
    "restartState": restartState,
  });
}