DsBrand enum

Brand identity used by DsBrandToggle.

Each value maps to a distinct color palette and ThemeData pair:

Inheritance
Available extensions

Values

violet → const DsBrand
const DsBrand('Violet')
emerald → const DsBrand
const DsBrand('Emerald')

Properties

hashCode int
The hash code for this object.
no setterinherited
icon IconData
Descriptive icon that represents each brand visually.
no setter
index int
A numeric identifier for the enumerated value.
no setterinherited
label String
Human-readable brand name.
final
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
next DsBrand
The other brand — used to compute the next value on toggle.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

darkTheme() ThemeData
Returns the dark ThemeData for this brand.
lightTheme() ThemeData
Returns the light ThemeData for this brand.
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

Constants

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