stop method

  1. @override
void stop()
override

Implementation

@override
void stop() {
  if (isInitialized) {
    _videoPlayerController.pause();
    _videoPlayerController.seekTo(Duration.zero);
    _playerstatestream.add(PlayerState.stopped);
    configuration = configuration.copyWith(isPlaying: false);
  }
}