locale property
Locale?
get
locale
Returns the App's current locale.
Implementation
static Locale? get locale =>
_appState?.locale ??= Localizations.maybeLocaleOf(context!) ??
_resolveLocales(
mainWindow.locales,
_appState?.supportedLocales,
);
set
locale
(Locale? locale)
Set the App's Locale If 'supportedLocales' are specified, this Locale must be among them.
Implementation
static set locale(Locale? locale) {
if (locale != null && v.L10n.setLocale(locale)) {
_appState?.locale = locale;
}
}