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
@override
bool equals(cm.ColorModel color) =>
RgbColor.from(this) == RgbColor.from(color);