toRgb method

List<int> toRgb()

Converts a Flutter Color object to RGB values.

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

Implementation

List<int> toRgb() {
  return ColorConverter.color2rgb(this);
}