Language enum

An enum representing different languages.

Inheritance
Available extensions

Values

en → const Language

English

es → const Language

Spanish

fr → const Language

French

de → const Language

German

it → const Language

Italian

Properties

code → String
Returns the name of the language in English.
no setter
displayFlag → Widget
Returns the display widget for the given language.
no setter
displayWidget → Widget
Returns the display widget for the given language.
no setter
flag → CountryFlag
Returns the flag for the given language.
no setter
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String
Returns the name of the language in the user's locale.
no setter
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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
Returns the language code.
override

Operators

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

Static Methods

fromCode(String code) → Language
Returns the language for the given language code.
fromCodeNullable(String? code) → Language?
Returns the language for the given language code.

Constants

values → const List<Language>
A constant List of the values in this enum, in order of their declaration.