LanguageTag class

Constructors

LanguageTag(String language, {String? extlang, String? script, String? region, String? variant})
factory
LanguageTag.fromJson(String jsonCode)
factory
LanguageTag.parse(String languageTag)
factory

Properties

canBeTruncated bool
no setter
code String
no setter
extlang String
final
hashCode int
The hash code for this object.
no setteroverride
icuCode String
At present this method simply returns subtags separated by underscores instead of hyphens and exclude variants and extended languages
no setter
icuSimpleValuesList List<String>
List of lowercase subtags in presentation order. Exclude variants and ext languages
no setter
icuValuesList List<String>
List of subtags in presentation order Exclude variants and ext languages
no setter
language String
final
lowercaseCode String
no setter
lowercaseIcu String
At present this method simply returns lowercase subtags separated by underscores instead of hyphens and exclude variants and ext languages
no setter
lowercasePosix String
At present this method simply returns lowercase subtags separated by underscores instead of hyphens
no setter
normalizedValuesList List<String>
no setter
posixCode String
At present this method simply returns subtags separated by underscores instead of hyphens
no setter
posixSimpleValuesList List<String>
List of lowercase subtags in presentation order. Exclude script, variants and ext languages
no setter
posixValuesList List<String>
List of subtags in presentation order Exclude script, variants and ext languages
no setter
region → Region?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
script String
final
simpleCode String
no setter
simpleValuesList List<String>
no setter
truncated LanguageTag
no setter
variant String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toString() String
A string representation of this object.
override

Operators

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