lerp static method
Implementation
static AnyBackground? lerp(
AnyBackground? a,
AnyBackground? b,
double t,
) {
if (a == null && b == null) return null;
if (a == null || b == null) return AnyUtils.pickLerpNullable(a, b, t);
return AnyBackground(
color: Color.lerp(a.color, b.color, t),
gradient: Gradient.lerp(a.gradient, b.gradient, t),
image: AnyUtils.pickLerpNullable(a.image, b.image, t),
blendMode: AnyUtils.pickLerpNullable(a.blendMode, b.blendMode, t),
isAntiAlias: AnyUtils.pickLerp(a.isAntiAlias, b.isAntiAlias, t),
shapeBase: AnyUtils.pickLerp(a.shapeBase, b.shapeBase, t),
);
}