lerp static method

Lerps a BarChartRodStackItem based on t value, check Tween.lerp.

Implementation

static BarChartRodStackItem lerp(
  BarChartRodStackItem a,
  BarChartRodStackItem b,
  double t,
) {
  return BarChartRodStackItem(
    lerpDouble(a.fromY, b.fromY, t)!,
    lerpDouble(a.toY, b.toY, t)!,
    Color.lerp(a.color, b.color, t)!,
    BorderSide.lerp(a.borderSide, b.borderSide, t),
  );
}