setPositionAnimated abstract method

bool setPositionAnimated(
  1. LocationPoint point,
  2. double duration,
  3. AnimationType type
)

Method is used to move the center of the circle with the specified animation. point Metrics coordinates of the center LocationPoint. duration Animation duration in seconds. type Animation type AnimationType. Default: CENTER. Returns true if the operation is successful, false otherwise.

Example:

// Set circle position with animation
LocationPoint animatedPoint = LocationPoint(150.0, 250.0);
bool animatedSuccess = _circleMapObject!.setPositionAnimated(
 animatedPoint,
 2.0,
 AnimationType.LINEAR,
);
print(
 "Set circle position with animation to (${animatedPoint.x}, ${animatedPoint.y}): $animatedSuccess",
);

Implementation

bool setPositionAnimated(LocationPoint point, double duration, AnimationType type);