toArray method

List<int> toArray()

Returns the components as a new int list.

Order: [r, g, b, a]

Implementation

List<int> toArray() => [r, g, b, a];