equals method

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

bool equals(ColorModel color) => RgbColor.from(this) == RgbColor.from(color);