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 hue = hslColor.hue;
final adjustedHue = (hue + 360 * super.getFirstCurve()!.transform(t)) % 360;
return HSLColor.fromAHSL(
mixedColor.alpha.toDouble() / 255.0,
adjustedHue,
hslColor.saturation,
hslColor.lightness,
).toColor();
}