current property

LocaleName current

Currently selected entry in supportedLocaleNames that contains Locale.

You can update it by using any value in supportedLocaleNames, if you are not sure that your locale exist in list of supportedLocales(in supportedLocaleNames): use LocaleSwitcher.trySetLocale.

The notifier localeIndex is the underlying notifier for this value.

Implementation

static LocaleName get current => CurrentLocale.current;
void current=(LocaleName value)

Implementation

static set current(LocaleName value) => CurrentLocale.current = value;