PrimaryColor class

Inheritance
Annotations

Constructors

PrimaryColor.fromAHSL(String name, double alpha, double hue, double saturation, double lightness)
const

Properties

alpha double
Alpha, from 0.0 to 1.0. The describes the transparency of the color. A value of 0.0 is fully transparent, and 1.0 is fully opaque.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
hue double
Hue, from 0.0 to 360.0. Describes which color of the spectrum is represented. A value of 0.0 represents red, as does 360.0. Values in between go through all the hues representable in RGB. You can think of this as selecting which color filter is placed over a light.
finalinherited
lightness double
Lightness, from 0.0 to 1.0. The lightness of a color describes how bright a color is. A value of 0.0 indicates black, and 1.0 indicates white. You can think of this as the intensity of the light behind the filter. As the lightness approaches 0.5, the colors get brighter and appear more saturated, and over 0.5, the colors start to become less saturated and approach white at 1.0.
finalinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saturation double
Saturation, from 0.0 to 1.0. This describes how colorful the color is. 0.0 implies a shade of grey (i.e. no pigment), and 1.0 implies a color as vibrant as that hue gets. You can think of this as the purity of the color filter over the light.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toColor() Color
Returns this HSL color in RGB.
inherited
toString() String
A string representation of this object.
override
withAlpha(double alpha) HSLColor
Returns a copy of this color with the alpha parameter replaced with the given value.
inherited
withHue(double hue) HSLColor
Returns a copy of this color with the hue parameter replaced with the given value.
inherited
withLightness(double lightness) HSLColor
Returns a copy of this color with the lightness parameter replaced with the given value.
inherited
withSaturation(double saturation) HSLColor
Returns a copy of this color with the saturation parameter replaced with the given value.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited