equals method
Compares colors in the RGB color space.
If comparing two colors from the same color space,
you can alternatively use the ==
operator.
Implementation
bool equals(ColorModel color) => RgbColor.from(this) == RgbColor.from(color);
Compares colors in the RGB color space.
If comparing two colors from the same color space,
you can alternatively use the ==
operator.
bool equals(ColorModel color) => RgbColor.from(this) == RgbColor.from(color);