withGreen method

  1. @override
XyzColor withGreen(
  1. num green
)
override

Returns a new color that matches this color with the green channel replaced with g (which ranges from 0 to 255).

Out of range values will have unexpected effects.

Implementation

@override
XyzColor withGreen(num green) {
  assert(green >= 0 && green <= 255);
  return toRgbColor().withGreen(green).toXyzColor();
}