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 lightness = hslColor.lightness;
var adjustedLightness = lightness * super.getFirstCurve()!.transform(t);
adjustedLightness = adjustedLightness.clamp(0, 1).toDouble();
return HSLColor.fromAHSL(
mixedColor.alpha.toDouble() / 255.0,
hslColor.hue,
hslColor.saturation,
adjustedLightness,
).toColor();
}