changeLocale method

void changeLocale(
  1. String locale
)

Change the current locale to a new locale. Getting data will now be for this locale.

Implementation

void changeLocale(String locale) {
  _currentLocale = locale;
}