castTo method Null safety

ColorModel castTo(
  1. ColorModel other
)

Converts this color to other's color space.

Implementation

ColorModel castTo(ColorModel other) => other.convert(this);