pause method Null safety

void pause()

Implementation

void pause() {
  pausedAt = (player?.currentTime ?? 0) as double;
  _cancel();
}