distanceTo method Null safety

double distanceTo(
  1. ColorModel color
)

Returns the distance between this color's hue and color's hue in degrees.

Implementation

double distanceTo(ColorModel color) =>
    ColorMath.calculateDistance(hue, color.hue).toDouble();