toList method
Returns the color components as a list.
The format matches what fromList expects:
- RGB:
red, green, blue, alpha(0-255 range) - HSL:
hue, saturation, lightness, opacity - Oklab:
l, a, b, opacity - Oklch:
l, c, h, opacity
Implementation
@override
List<num> toList() => [lightness, chroma, hue, opacity];