toArray method

dynamic toArray()

returns a list of r, g, b, a;

Implementation

toArray() {
  return [r, g, b, a];
}