updateLocale method
Implementation
void updateLocale(BuildContext context, Locale locale) {
if (_locale == locale) return;
_locale = locale;
//context.setLocale(locale);
notifyListeners();
}
void updateLocale(BuildContext context, Locale locale) {
if (_locale == locale) return;
_locale = locale;
//context.setLocale(locale);
notifyListeners();
}