lerpFrom method
Linearly interpolate between this element and from
.
Implementation
@override
PolygonElement lerpFrom(covariant PolygonElement from, double t) {
final pointsRst = lerpPointList(from.points, points, t);
return PolygonElement(
points: pointsRst,
style: style.lerpFrom(from.style, t),
rotation: lerpDouble(from.rotation, rotation, t),
rotationAxis: Offset.lerp(from.rotationAxis, rotationAxis, t),
tag: tag,
);
}