stopPlaying method

Future<void> stopPlaying()

Implementation

Future<void> stopPlaying() async {
  _playbackGeneration++;
  _isOpening = false;
  _onPlayComplete = null;
  _onPlayFailed = null;
  _completed = false;
  _currentPlayingId = null;
  await _service.stop();
  await _proximitySensor.setEnabled(false);
}