1. override
BoxDecoration lerpTo(Decoration b, double t)

Linearly interpolates from this to b.

Source

@override
BoxDecoration lerpTo(Decoration b, double t) {
  if (b is! BoxDecoration)
    return BoxDecoration.lerp(this, null, t);
  return BoxDecoration.lerp(this, b, t);
}