dispose method

void dispose()

Dispose the player

Implementation

void dispose() {
  _methodChannel.invokeMethod('dispose', id.value);
  _eventSubscription?.cancel();
  id.dispose();
  mediaInfo.dispose();
  videoSize.dispose();
  position.dispose();
  error.dispose();
  loading.dispose();
  playbackState.dispose();
  volume.dispose();
  speed.dispose();
  looping.dispose();
  autoPlay.dispose();
  finishedTimes.dispose();
}