locale property
final
The initial locale for this app's Localizations widget is based on this value.
If the 'locale' is null then the system's locale value is used.
The value of Localizations.locale will equal this locale if it matches one of the supportedLocales. Otherwise it will be the first element of supportedLocales.
See also:
- localeResolutionCallback, which can override the default supportedLocales matching algorithm.
- localizationsDelegates, which collectively define all of the localized resources used by this app.
Implementation
final Locale? locale;