InterpolationMethod constructor
InterpolationMethod(
- ColorSpace space, [
- 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.");
}
}