equals method

  1. @override
bool equals(
  1. ColorModel color
)
inherited

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);