An identifier used to select a user's language and formatting preferences.
This represents a Unicode Language Identifier (i.e. without Locale extensions), except variants are not supported.
Locales are canonicalized according to the "preferred value" entries in the
IANA Language Subtag
const Locale('he') and
const Locale('iw') are equal and
both have the languageCode
iw is a deprecated language
subtag that was replaced by the subtag
- countryCode → String
The region subtag for the locale. [...]
- hashCode → int
The hash code for this object. [...]
- languageCode → String
The primary language subtag for the locale. [...]
- scriptCode → String
The script subtag for the locale. [...]
- runtimeType → Type
A representation of the runtime type of the object.