ThemeSeed class
Minimal color input for theme generation.
Only define the essential colors that can't be derived. Everything else (foregrounds, containers, hovers, RGB values) is computed by PaletteGenerator.
Constructors
Properties
- accent → int?
-
Accent color for highlights and hover states.
If null, defaults to secondary.
final
- accentGlow → bool
-
Whether to add accent glow to shadows (for gaming aesthetics).
final
- background → int?
-
Background color.
If null, defaults to white (light mode) or black (dark mode).
final
- border → int?
-
Border color.
If null, derived from foreground at low opacity.
final
- destructive → int
-
Error/destructive action color.
final
- glowColor → int?
-
Optional accent glow color. If null, uses primary.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- info → int
-
Info/neutral action color.
final
- isDark → bool
-
Whether this is a dark theme.
Affects how derived colors are calculated.
final
- primary → int
-
Primary brand color. Used for buttons, links, focus rings.
Foreground is auto-calculated for WCAG contrast.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondary → int?
-
Secondary/muted surface color.
If null, derived from background (slightly darker/lighter).
final
- success → int
-
Success/positive action color.
final
- warning → int
-
Warning/caution color.
final
Methods
-
copyWith(
{int? primary, int? background, int? secondary, int? accent, int? border, int? destructive, int? success, int? warning, int? info, bool? isDark, bool? accentGlow, int? glowColor}) → ThemeSeed - Create a copy with some fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDark(
{int? background, int? destructive, int? success, int? warning, int? info, bool? accentGlow}) → ThemeSeed - Create a dark mode variant of this seed.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited