lerp static method
Lerps a VerticalRangeAnnotation based on t
value, check Tween.lerp.
Implementation
static VerticalRangeAnnotation lerp(
VerticalRangeAnnotation a,
VerticalRangeAnnotation b,
double t,
) {
return VerticalRangeAnnotation(
x1: lerpDouble(a.x1, b.x1, t)!,
x2: lerpDouble(a.x2, b.x2, t)!,
color: Color.lerp(a.color, b.color, t),
gradient: Gradient.lerp(a.gradient, b.gradient, t),
);
}