withBlue method

  1. @override
LabColor withBlue(
  1. num blue
)
override

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

Out of range values will have unexpected effects.

Implementation

@override
LabColor withBlue(num blue) {
  assert(blue >= 0 && blue <= 255);
  return toRgbColor().withBlue(blue).toLabColor();
}