toColor method

Color toColor()

Returns this HSL color in RGB.

Implementation

Color toColor() {
  final rgb = Hsluv.hsluvToRgb([hue, saturation, lightness]);
  return Color.fromARGB(255, (rgb[0] * 255).toInt(), (rgb[1] * 255).toInt(),
      (rgb[2] * 255).toInt());
}