skipAnimation method
- bool jumpToDestination = true,
Terminates the current map animation.
Immediately stops any ongoing animated transition triggered by centering
methods (centerOnCoordinates, centerOnArea, etc.) with animation enabled.
By default, the map instantly completes the animation, jumping to the target
destination. Set jumpToDestination to false to stop at the current
intermediate position instead.
Use isAnimationInProgress to check if an animation is active before calling this method.
Parameters
jumpToDestination: Iftrue, completes the animation instantly by jumping to the target. Iffalse, stops at the current position. Defaults totrue
See also:
- isAnimationInProgress - Check if animation is active
- centerOnCoordinates - Center with optional animation
- centerOnArea - Center area with optional animation
Implementation
void skipAnimation({final bool jumpToDestination = true}) {
objectMethod(
_pointerId,
'MapView',
'skipAnimation',
args: jumpToDestination,
);
}