lerp static method

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

Implementation

static FlGridData lerp(FlGridData a, FlGridData b, double t) {
  return FlGridData(
    show: b.show,
    drawHorizontalLine: b.drawHorizontalLine,
    horizontalInterval:
        lerpDouble(a.horizontalInterval, b.horizontalInterval, t),
    getDrawingHorizontalLine: b.getDrawingHorizontalLine,
    checkToShowHorizontalLine: b.checkToShowHorizontalLine,
    drawVerticalLine: b.drawVerticalLine,
    verticalInterval: lerpDouble(a.verticalInterval, b.verticalInterval, t),
    getDrawingVerticalLine: b.getDrawingVerticalLine,
    checkToShowVerticalLine: b.checkToShowVerticalLine,
  );
}