HslColor class

Constructors

HslColor({required double h, required double s, required double l, double a = 0.0})

Properties

a double
final
h double
final
hashCode int
The hash code for this object.
no setterinherited
l double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
s double
final

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

Operators

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