stop method

Future<void> stop()

Implementation

Future<void> stop() async {
  _running = false;
  if (_player.isPlaying) {
    await _player.stopPlayer();
  }
}