RgbColor.fromColor constructor
RgbColor.fromColor(
- Color color
Constructs a RgbColor from color
.
Implementation
factory RgbColor.fromColor(Color color) =>
RgbColor(color.red, color.green, color.blue, color.alpha);