InterpolationMethod constructor

InterpolationMethod(
  1. ColorSpace space, [
  2. HueInterpolationMethod? hue
])

Implementation

InterpolationMethod(this.space, [HueInterpolationMethod? hue])
    : hue = space.isPolar ? hue ?? HueInterpolationMethod.shorter : null {
  if (!space.isPolar && hue != null) {
    throw ArgumentError(
        "Hue interpolation method may not be set for rectangular color space "
        "$space.");
  }
}