complement method
Gets the complementary color
Implementation
Color complement() {
final hsl = HSLColor.fromColor(this);
final complementaryHue = (hsl.hue + 180) % 360;
return hsl.withHue(complementaryHue).toColor();
}
Gets the complementary color
Color complement() {
final hsl = HSLColor.fromColor(this);
final complementaryHue = (hsl.hue + 180) % 360;
return hsl.withHue(complementaryHue).toColor();
}