stopAnimation method

void stopAnimation([
  1. bool? stopsAllAnimations
])

Stops the #defaultAnimation and updates the Diagram to its final state.

If the argument is true, this stops all running animations. If an Animation was about to begin, it will be cancelled.

If the AnimationManager#defaultAnimation is running, this will raise the "AnimationFinished" Diagram event. @param {boolean=} stopsAllAnimations Whether to stop all animations, instead of just the #defaultAnimation. Default false.

Implementation

void stopAnimation([_i2.bool? stopsAllAnimations]) {
  _i4.callMethod(
    this,
    'stopAnimation',
    [stopsAllAnimations ?? _i5.undefined],
  );
}