EnumLanguageMode enum

语言模式

Inheritance
Available extensions

Values

system → const EnumLanguageMode

跟随系统

const EnumLanguageMode('followSystem', 1, null)
cn → const EnumLanguageMode

中文

const EnumLanguageMode('cn', 2, Locale('zh', 'CN'))
en → const EnumLanguageMode

英文

const EnumLanguageMode('en', 3, Locale('en', 'US'))

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
mode Locale?
语言
final
name String
名称
final
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
val int
final

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

Static Methods

fromVal(int? val) EnumLanguageMode
从值获取枚举
getMode(int? val) Locale
获取语言
getName(int? val) String
获取名称

Constants

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