DsBrand enum
Brand identity used by DsBrandToggle.
Each value maps to a distinct color palette and ThemeData pair:
- violet → BrandATheme (violet-500 seed,
#6C63FF) - emerald → BrandBTheme (emerald-500 seed,
#00C853)
Values
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