setPositionAnimated abstract method
Animates the model anchor to a new position.
point Target metrics coordinates LocationPoint.
duration Animation duration in seconds.
type Animation easing AnimationType.
Returns true if the operation is successful, false otherwise.
Example:
bool posAnimOk = m.setPositionAnimated(
LocationPoint(15.0, 40.0),
0.5,
AnimationType.SINE,
);
print("Model setPositionAnimated: $posAnimOk");
Implementation
bool setPositionAnimated(LocationPoint point, double duration, AnimationType type);