1. override
BoxDecoration lerpFrom(Decoration a, double t)

Linearly interpolates from a to this.

Source

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