lerp static method

Implementation

static NeumorphismBorder? lerp(
    NeumorphismBorder? a, NeumorphismBorder? b, double t) {
  if (a == null && b == null) return null;

  if (t == 0.0) return a;
  if (t == 1.0) return b;

  return NeumorphismBorder(
    color: Color.lerp(a!.color, b!.color, t),
    isEnabled: a.isEnabled,
    width: lerpDouble(a.width, b.width, t),
  );
}