EnumThemeMode enum

主题模式

Inheritance
Available extensions

Values

system → const EnumThemeMode

跟随系统

const EnumThemeMode('followSystem', 1, ThemeMode.system)
light → const EnumThemeMode

亮色主题

const EnumThemeMode('lightTheme', 2, ThemeMode.light)
dark → const EnumThemeMode

暗色主题

const EnumThemeMode('darkTheme', 3, ThemeMode.dark)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
mode ThemeMode
模式
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) EnumThemeMode
从值获取枚举
getMode(int? val) ThemeMode
获取模式
getName(int? val) String
获取名称

Constants

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