setLocale method

void setLocale(
  1. Locale locale, {
  2. bool silent = false,
})

Set the locale, and notify listeners if silent is false

Implementation

void setLocale(Locale locale, {bool silent = false}) {
  _locale = locale;
  if (!silent) notifyListeners();
}