lerpFrom method
Linearly interpolate between this element and from
.
Implementation
@override
LineElement lerpFrom(covariant LineElement from, double t) => LineElement(
start: Offset.lerp(from.start, start, t)!,
end: Offset.lerp(from.end, end, t)!,
style: style.lerpFrom(from.style, t),
rotation: lerpDouble(from.rotation, rotation, t),
rotationAxis: Offset.lerp(from.rotationAxis, rotationAxis, t),
tag: tag,
);