toColor method

Color toColor()

Returns this as a Color, converting the color to RGB if necessary.

Implementation

Color toColor() {
  final rgb = RgbColor.from(this);
  return Color.fromARGB(rgb.alpha, rgb.red, rgb.green, rgb.blue);
}