setAngleAnimated abstract method
Method is used to rotate the icon with the specified animation.
angle Rotation angle in degrees.
duration Animation duration in seconds.
type Animation type AnimationType.
Returns true if the operation is successful, false otherwise.
Example:
// Set icon rotation with animation
bool angleAnimatedSuccess = _iconMapObject!.setAngleAnimated(
90.0,
2.0,
AnimationType.SINE,
);
print(
"Set icon rotation with animation to 90 degrees: $angleAnimatedSuccess",
);
Implementation
bool setAngleAnimated(double angle, double duration, AnimationType type);