getMix method
Implementation
@override
Color? getMix(int value) {
assert(value >= 0 && value <= 1000);
final mixedColor = blender.blend(baseColor, previousMixer?.getMix(value));
final hslColor = HSLColor.fromColor(mixedColor);
final t = value / 1000;
final saturation = hslColor.saturation;
var adjustedSaturation = saturation * super.getFirstCurve()!.transform(t);
adjustedSaturation = adjustedSaturation.clamp(0, 1).toDouble();
return HSLColor.fromAHSL(
mixedColor.alpha.toDouble() / 255.0,
hslColor.hue,
adjustedSaturation,
hslColor.lightness,
).toColor();
}