lerp static method

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

Implementation

static BarChartGroupData lerp(
  BarChartGroupData a,
  BarChartGroupData b,
  double t,
) {
  return BarChartGroupData(
    x: (a.x + (b.x - a.x) * t).round(),
    groupVertically: b.groupVertically,
    barRods: lerpBarChartRodDataList(a.barRods, b.barRods, t),
    barsSpace: lerpDouble(a.barsSpace, b.barsSpace, t),
    showingTooltipIndicators: lerpIntList(
      a.showingTooltipIndicators,
      b.showingTooltipIndicators,
      t,
    ),
  );
}