Language class

Language entity along with its Locale.

Constructors

Language(String name, Locale locale)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
locale → Locale
Locale of this Language.
final
name → String
Localized local name of this Language.
final
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
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromLocale(Locale locale) → Language?
Returns a Language from the L10n.languages matching the provided locale, if any.
fromTag(String? tag) → Language?
Returns a Language identified by its tag from the L10n.languages, if any.