localeCode property

String localeCode

Returns the locale code for the current locale.

The locale code is a string identifier that uniquely identifies a Locale. Examples include "en-US" for English as used in the United States, or "fr-CA" for French as used in Canada.

Implementation

String get localeCode => _locale.code();