ThemeMode enum
Whether a site shows its light or dark colors (Flutter's ThemeMode,
as MaterialApp.themeMode takes it).
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