stop method

void stop()

Stops the animation.

Implementation

void stop() {
  _timer?.cancel();
  _timer = null;
}