toRGBList function Null safety

List<double> toRGBList(
  1. Color color
)

Implementation

List<double> toRGBList(Color color) {
  return [color.red.toDouble(), color.green.toDouble(), color.blue.toDouble()];
}