stop method

void stop({
  1. bool canceled = true,
})

Stops running this animation.

This does not trigger any notifications. The animation stops in its current state.

Implementation

void stop({bool canceled = true}) {
  _simulation = null;
  _lastElapsedDuration = null;
  _ticker!.stop(canceled: canceled);
}