LEDColor class

A class representing the RGB color values for the LED.

Constructors

LEDColor({required int red, required int green, required int blue})
Constructs an LEDColor with the specified red, green, and blue values and checks the arguments.

Properties

blue int
Blue component of the RGB color, ranging from 0 to 255.
final
green int
Green component of the RGB color, ranging from 0 to 255.
final
hashCode int
The hash code for this object.
no setterinherited
red int
Red component of the RGB color, ranging from 0 to 255.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toHex(int value) String
Converts an integer value to a hexadecimal string.
toParameters() List<String>
Converts the RGB color values into a list of strings, each representing one of the color components in hexadecimal format.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited