togglePlay method

void togglePlay()

Toggle play.

Implementation

void togglePlay() {
  _isPlaying ? pause() : play();
}