PaletteTarget class final

Describes one of the six classic palette swatch targets.

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
Human-readable name, e.g. vibrant or darkMuted.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
targetChroma → double
Ideal chroma (HCT colorfulness, 0–~130).
final
targetTone → double
Ideal tone (HCT lightness, 0–100).
final

Methods

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

all → const List<PaletteTarget>
All six classic targets, in registration order.
darkMuted → const PaletteTarget
A desaturated swatch with low lightness.
darkVibrant → const PaletteTarget
A colorful swatch with low lightness.
lightMuted → const PaletteTarget
A desaturated swatch with high lightness.
lightVibrant → const PaletteTarget
A bright, colorful swatch with high lightness.
muted → const PaletteTarget
A desaturated swatch.
vibrant → const PaletteTarget
A bright, colorful swatch.