setLocale method

void setLocale(
  1. String? newLocale
)

Implementation

void setLocale(String? newLocale) {
  if (newLocale == null) return;
  set(locales[newLocale]!);
  FluteStorage.write(kLocaleKey, newLocale);
}