FluentColorAreaBaseState class

Everything needed to paint a colour area, independent of the design axis.

buildFluentColorArea takes this rather than FluentColorAreaState, which is what makes "Fluent's state, my own styling, Fluent's rendering" a supported path rather than a fork.

Implementers
Annotations

Constructors

FluentColorAreaBaseState({required HSVColor color, required bool enabled})
Creates a base state.
const

Properties

color → HSVColor
The colour the square is showing. Its saturation and value place the thumb; its hue paints the square.
final
enabled → bool
Whether the area responds to input.
final
hashCode → int
The hash code for this object.
no setterinherited
hueColor → Color
The opaque hue the square is painted over — upstream's hsl(h, 100%, 50%).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
saturation → double
Where the thumb sits across the square, from 0 to 1.
no setter
thumbColor → Color
The colour inside the thumb — upstream's tinycolor(hsv).toRgbString(), which drops alpha.
no setter
value → double
Where the thumb sits up the square, from 0 at the bottom to 1 at the top.
no setter

Methods

colorAt(double x, double y) → HSVColor
The colour at normalised coordinates x across and y up, with the hue and alpha of color carried through untouched.
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