YunoLanguage enum
Enum representing the languages supported by the Yuno SDK. Example usage:
void main() {
// Get the language code for Spanish
YunoLanguage language = YunoLanguage.es;
print('Selected language: ${language.rawValue}');
// Switch on the language
switch (language) {
case YunoLanguage.en:
print('English selected');
break;
case YunoLanguage.es:
print('Spanish selected');
break;
// Handle other languages...
default:
print('Other language selected');
}
}
The output will be:
Selected language: ES
Spanish selected
Values
- en → const YunoLanguage
-
English language.
const YunoLanguage('EN')
- es → const YunoLanguage
-
Spanish language.
const YunoLanguage('ES')
- pt → const YunoLanguage
-
Portuguese language.
const YunoLanguage('PT')
- ms → const YunoLanguage
-
Malay language.
const YunoLanguage('MW')
- id → const YunoLanguage
-
Indonesian language.
const YunoLanguage('ID')
- th → const YunoLanguage
-
Thai language.
const YunoLanguage('TH')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - rawValue → String
-
The raw value of the language code.
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
YunoLanguage> - A constant List of the values in this enum, in order of their declaration.