playOrPause method

Future<void> playOrPause()

Implementation

Future<void> playOrPause() async {
  if (isPlaying) {
    await pause();
  } else {
    await _seekToBegin();
    await play();
  }
}