lerp static method

Lerps the value between active dot and prev-active dot

Implementation

static DotDecoration lerp(DotDecoration a, DotDecoration b, double t) {
  return DotDecoration(
      borderRadius: BorderRadius.lerp(a.borderRadius, b.borderRadius, t)!,
      width: ui.lerpDouble(a.width, b.width, t) ?? 0.0,
      height: ui.lerpDouble(a.height, b.height, t) ?? 0.0,
      color: Color.lerp(a.color, b.color, t)!,
      dotBorder: DotBorder.lerp(a.dotBorder, b.dotBorder, t),
      verticalOffset:
          ui.lerpDouble(a.verticalOffset, b.verticalOffset, t) ?? 0.0,
      rotationAngle:
          ui.lerpDouble(a.rotationAngle, b.rotationAngle, t) ?? 0.0);
}