lerp static method

Implementation

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

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

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