close method
void
close()
Close or stop opening the media file.
Implementation
void close() {
_source = null;
if (id.value != null &&
(playbackState.value != PlaybackState.closed || loading.value)) {
_methodChannel.invokeMethod('close', id.value);
mediaInfo.value = null;
videoSize.value = Size.zero;
position.value = 0;
bufferRange.value = BufferRange.empty;
finishedTimes.value = 0;
playbackState.value = PlaybackState.closed;
}
loading.value = false;
}