Locale enum

Inheritance

Constructors

Locale(String code)
const

Values

indonesian → const Locale
const Locale('id')
danish → const Locale
const Locale('da')
german → const Locale
const Locale('de')
englishUk → const Locale
const Locale('en-GB')
englishUs → const Locale
const Locale('en-US')
spanish → const Locale
const Locale('es-ES')
french → const Locale
const Locale('fr')
croatian → const Locale
const Locale('hr')
italian → const Locale
const Locale('it')
lithuanian → const Locale
const Locale('lt')
hungarian → const Locale
const Locale('hu')
dutch → const Locale
const Locale('nl')
norwegian → const Locale
const Locale('no')
polish → const Locale
const Locale('pl')
portugueseBrazilian → const Locale
const Locale('pt-BR')
romanian → const Locale
const Locale('ro')
finnish → const Locale
const Locale('fi')
swedish → const Locale
const Locale('sv-SE')
vietnamese → const Locale
const Locale('vi')
turkish → const Locale
const Locale('tr')
czech → const Locale
const Locale('cs')
greek → const Locale
const Locale('el')
bulgarian → const Locale
const Locale('bg')
russian → const Locale
const Locale('ru')
ukrainian → const Locale
const Locale('uk')
hindi → const Locale
const Locale('hi')
thai → const Locale
const Locale('th')
chineseChina → const Locale
const Locale('zh-CN')
japanese → const Locale
const Locale('ja')
chineseTaiwan → const Locale
const Locale('zh-TW')
korean → const Locale
const Locale('ko')

Properties

code String
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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
toString() String
A string representation of this object.
override

Operators

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

Static Methods

deserialize(String code) Locale
Deserializes the code into a Locale. If the code is not a valid locale, returns the Locale.englishUs as it is considered the default locale from Discord.

Constants

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