currentLocalization property
Localization
get
currentLocalization
Get the current localization
If null, it defaults to to the better option based on the system's
language(s). You need to add the localization to localizations in
order to this work.
Implementation
static Localization get currentLocalization {
if (_currentLocalization == null) return basedOnSystem!;
return _currentLocalization!;
}
set
currentLocalization
(Localization localization)
Set the current localization. In order to set this, you need to update the whole app, otherwise the user won't see the changes
Implementation
static set currentLocalization(Localization localization) {
_currentLocalization = localization;
_onLocaleChanged.add(localization);
}