lerp static method
Linearly interpolates between two SpotlightStyles.
Implementation
static SpotlightStyle? lerp(SpotlightStyle? a, SpotlightStyle? b, double t) {
if (a == null && b == null) {
return null;
}
if (a == null) {
return b;
}
if (b == null) {
return a;
}
if (t == 0.0) {
return a;
}
if (t == 1.0) {
return b;
}
return SpotlightStyle(
radius: lerpDouble(a.radius, b.radius, t),
gradient: Gradient.lerp(a.gradient, b.gradient, t),
);
}