RgbColor.from constructor

RgbColor.from(
  1. ColorModel color
)

Constructs a RgbColor from color.

Implementation

factory RgbColor.from(cm.ColorModel color) => color.toRgbColor().cast();