platformResolvedLocale property

Locale platformResolvedLocale

The locale that the platform's native locale resolution system resolves to.

This value may differ between platforms and is meant to allow Flutter's locale resolution algorithms access to a locale that is consistent with other apps on the device. Using this property is optional.

This value may be used in a custom localeListResolutionCallback or used directly in order to arrive at the most appropriate locale for the app.

See locales, which is the list of locales the user/device prefers.

Implementation

Locale get platformResolvedLocale => _platformResolvedLocale;