pause method

Future<void> pause()

Pauses playing the stream associated with this object

Implementation

Future<void> pause() async {
  if (!_stopped && _playing) {
    await _pool.pause(stream);
    _playing = false;
  }
}