lerp static method

Lerps the value between active dot border and prev-active dot's border

Implementation

static DotBorder lerp(DotBorder a, DotBorder b, double t) {
  if (t == 0.0) {
    return a;
  }
  if (t == 1.0) {
    return b;
  }
  return DotBorder(
      color: Color.lerp(a.color, b.color, t)!,
      width: ui.lerpDouble(a.width, b.width, t)!,
      padding: ui.lerpDouble(a.padding, b.padding, t)!);
}