LocaleDisplayName class abstract Locales

Localized locale display name information.

NOTE: This class pulls in the subdivisions, time zones and currencies data for all used locales.This will substantially increase the final file size.

Constructors

LocaleDisplayName(CommonLocaleData cld)
const

Properties

cld CommonLocaleData
final
codePatternLanguage String
Pattern to display the language code
no setter
codePatternScript String
Pattern to display the script code
no setter
codePatternTerritory String
Pattern to display the territory code
no setter
hashCode int
The hash code for this object.
no setterinherited
keyNames Map<String, String>
no setter
localeKeyTypePattern String
Pattern to display key value pairs
no setter
localePattern String
Pattern to display locale
no setter
localeSeparator String
Pattern to concatenate parts of the locale
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valueNames Map<String, Map<String, String>>
no setter

Methods

format(LanguageId languageId, {LocaleDisplayNameStyle preferType = LocaleDisplayNameStyle.regular, bool preferComposition = false}) String
Format the languageId for display.
formatWithExtensions(LanguageId localeId, {LocaleDisplayNameStyle preferType = LocaleDisplayNameStyle.regular, bool preferComposition = false}) String
Format the localeId for display.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited