pause method

dynamic pause()

Set timer in pause

Implementation

pause() {
  if (this.onPause != null) {
    this.onPause!();
  }
}