withChroma method

  1. @override
HsbColor withChroma(
  1. double chroma
)

Converts this color to the Oklab color space, calculates and applies a new lightness value from the proivded chroma value, and converts it back to the original color space.

Implementation

@override
HsbColor withChroma(double chroma) => super.withChroma(chroma).cast();