stop method

void stop()

Implementation

void stop() {
  context?.cancelAnimationFrame(requestId);
  isAnimating = false;
}