Locale class abstract
Representing a Unicode locale identifier.
It is composed of the primary language subtag for the locale, the
region (also referred to as 'country') subtag, and the script subtag.
Examples are de-DE, es-419, or zh-Hant-TW.
Constructors
- Locale()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toLanguageTag(
[String separator = '-']) → String -
Generate a language tag by joining the subtags with the
separator. -
toString(
) → String -
A string representation of this object.
override
-
withCalendar(
Calendar calendar) → Locale -
Returns a new
Localewith the givencalendar. -
withClockStyle(
ClockStyle clockStyle) → Locale -
Returns a new
Localewith the givenclockStyle. -
withNumberingSystem(
NumberingSystem system) → Locale -
Returns a new
Localewith the givensystem.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited