HslColor class
Methods
-
complement()
→ HslColor
-
-
copyWith({double? h, double? s, double? l, double? a})
→ HslColor
-
-
darken([int amount = 10])
→ HslColor
-
Darken the color a given amount, from 0 to 100.
Providing 100 will always return black.
-
desaturate([int amount = 10])
→ HslColor
-
Desaturate the color a given amount, from 0 to 100.
Providing 100 will is the same as calling greyscale.
-
greyscale()
→ HslColor
-
Completely desaturates a color into greyscale. Same as calling desaturate(100).
-
lighten([int amount = 10])
→ HslColor
-
Lighten the color a given amount, from 0 to 100.
Providing 100 will always return white.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
saturate([int amount = 10])
→ HslColor
-
Saturate the color a given amount, from 0 to 100.
-
spin(double amount)
→ HslColor
-
Spin the hue a given amount, from -360 to 360.
Calling with 0, 360, or -360 will do nothing (since it sets the hue back to what it was before).
-
toColor()
→ Color
-
-
toString()
→ String
-
A string representation of this object.
override