dispose method

  1. @override
void dispose()
override

Implementation

@override
void dispose() {
  _videoPlayerController.dispose();
  _initializationstream.close();
  _positionstream.close();
  _durationstream.close();
  _playerstatestream.close();
  worker?.dispose();
  _stopListeners();
}