color2rgb static method

List<int> color2rgb(
  1. Color color
)

Converts a Flutter Color object to RGB values.

Returns a list of integers representing the RGB values. r, g, b

Implementation

static List<int> color2rgb(Color color) {
  return [color.red, color.green, color.blue];
}