LokotroPayLanguage enum
Supported languages for Lokotro Pay plugin
Values
- english → const LokotroPayLanguage
-
const LokotroPayLanguage('en', 'English', 'assets/flags/England.svg') - french → const LokotroPayLanguage
-
const LokotroPayLanguage('fr', 'Français', 'assets/flags/france.svg') - spanish → const LokotroPayLanguage
-
const LokotroPayLanguage('es', 'Español', 'assets/flags/spain.svg') - russian → const LokotroPayLanguage
-
const LokotroPayLanguage('ru', 'Русский', 'assets/flags/russia.svg') - chinese → const LokotroPayLanguage
-
const LokotroPayLanguage('zh', '中文(普通话)', 'assets/flags/china.svg') - lingala → const LokotroPayLanguage
-
const LokotroPayLanguage('ln', 'Lingala', 'assets/flags/drc.svg')
Properties
- code → String
-
Language code (e.g., 'en', 'fr')
final
- displayName → String
-
Display name in the native language
final
- flagAsset → String
-
Path to the flag asset
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- locale → Locale
-
Convert to Flutter 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
-
toMap(
) → Map< String, String> - Get language details as map
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
supportedLocales
→ List<
Locale> -
Get all supported locales
no setter
Static Methods
-
fromCode(
String code) → LokotroPayLanguage? - Get language from code
-
getAllLanguages(
) → List< Map< String, String> > - Get all languages as list of maps
Constants
-
values
→ const List<
LokotroPayLanguage> - A constant List of the values in this enum, in order of their declaration.