pause method

void pause()

Implementation

void pause() {
  pausedAt = player?.currentTime as double?;
  isPlaying = false;
  player?.pause();
}