lerpFrom method
Linearly interpolates from another PrettyQrShape (which may be of a
different class) to this
.
Instead of calling this directly, use PrettyQrShape.lerp.
Implementation
@override
PrettyQrRoundedSymbol? lerpFrom(PrettyQrShape? a, double t) {
if (identical(a, this)) {
return this;
}
if (a == null) return this;
if (a is! PrettyQrRoundedSymbol) return null;
if (t == 0.0) return a;
if (t == 1.0) return this;
return PrettyQrRoundedSymbol(
color: PrettyQrBrush.lerp(a.color, color, t)!,
borderRadius: BorderRadiusGeometry.lerp(a.borderRadius, borderRadius, t)!,
);
}