isAnimationInProgress property

bool get isAnimationInProgress

Checks whether a map animation is currently in progress.

Returns true if the map view is performing an animated transition, such as those triggered by centerOnCoordinates, centerOnArea, or other centering methods with animation enabled. Returns false when no animation is active.

Use skipAnimation to immediately complete the current animation or isCameraMoving to check if the camera is moving for any reason (including non-animated movements).

See also:

Implementation

bool get isAnimationInProgress {
  final OperationResult val = objectMethod(
    _pointerId,
    'MapView',
    'isAnimationInProgress',
  );

  return val['result'];
}