stop method

  1. @override
void stop()
override

Implementation

@override
void stop() {
  forwardHandler?.stop();
  forwardHandler = null;

  _clearListeners();

  if (_audioElement != null) {
    isPlaying = false;
    pause();
    _audioElement?.currentTime = 0;
    channel.invokeMethod(WebPlayer.methodPosition, 0);
  }
}