RgbColor.fromColor constructor

RgbColor.fromColor(
  1. Color color
)

Constructs a RgbColor from color.

Implementation

factory RgbColor.fromColor(Color color) =>
    RgbColor(color.red, color.green, color.blue, color.alpha);