onPaused method

void onPaused()

Implementation

void onPaused() {
  controller!.animationController.stop(canceled: true);
}