I would like to be able to take a Color and convert it into a List<int> so like [0,255,255].
Color
List<int>
How do I do that?
List<int> getRGB(Color c) { return [c.red, c.blue, c.green]; }
To use
Color c = Colors.red; print(getRGB(c));