togglePause method

Future<void> togglePause()

Implementation

Future<void> togglePause() => isPlaying ? pause() : play();