stop method

Future<void> stop()

Stops playing the stream associated with this object

Implementation

Future<void> stop() async {
  await _pool.stop(stream);
  _stopped = true;
  _playing = false;
}