changeLanguage method
Update the language in the application
Implementation
changeLanguage(String language, {bool restartState = true}) async {
await NyLocalization.instance.setLanguage(
context,
language: language,
restart: restartState,
);
}