color property
set
color
(Color color)
Picks color, keeping the hue when color is a grey.
Implementation
set color(Color color) {
final next = HSVColor.fromColor(color);
final grey = next.saturation == 0 || next.value == 0;
value = grey ? next.withHue(value.hue) : next;
}