playPause method

Future<void> playPause()

Implementation

Future<void> playPause() => value.isPlaying ? pause() : play();