ThemeMode enum

Whether a site shows its light or dark colors (Flutter's ThemeMode, as MaterialApp.themeMode takes it).

Inheritance
Available extensions

Values

system → const ThemeMode

The device's setting (MediaQuery.platformBrightnessOf).

light → const ThemeMode

Always the light colors.

dark → const ThemeMode

Always the ThemeTokens.dark colors.

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
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

isDark({required bool platformDark}) → bool
Whether a screen is dark in this mode on a device whose own setting is platformDark.
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

tryParse(Object? json) → ThemeMode?
The mode json names ("system", "light", "dark", any case), else null.

Constants

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