An identifier used to select a user's language and formatting preferences, consisting of a language and a country. This is a subset of locale identifiers as defined by BCP 47.

Constructors

Locale(String languageCode, String countryCode)

Creates a new Locale object. The first argument is the primary language subtag, the second is the region subtag.

const

Properties

countryCode String

The region subtag for the locale.

read-only
hashCode int

read-only
languageCode String

The primary language subtag for the locale.

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

Methods

toString() String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited