toParameters method
Converts the RGB color values into a list of strings, each representing one of the color components in hexadecimal format.
- Returns: A list of hexadecimal strings representing the red, green, and blue components of the color.
Implementation
List<String> toParameters() {
return [toHex(red), toHex(green), toHex(blue)];
}