equals method Null safety

bool equals(
  1. ColorModel color
)

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