stop method

Future<void> stop()

Implementation

Future<void> stop() async {
  await AudioPlayerPlatform.stop();
  _currentPath = null;
  _isPlaying = false;
  _isPaused = false;
  _currentPosition = 0;
  _duration = 0;
}