locale property
Returns the device's possibly ever-changing Locale. Notice how the AppState's locale is always the determined locale.
Implementation
@Deprecated('Should not be an exposed property')
Locale? get locale => appState?.locale;
Set the App's Locale
Implementation
@Deprecated('Should not be a readily available capability')
set locale(Locale? locale) {
if (locale != null) {
/// If 'supportedLocales' are specified, this Locale must be among them.
appState?.locale = locale;
}
}