open method
Open a media file
source: The url or local path of the media file
Implementation
void open(String source) {
if (!disposed) {
_source = source;
if (id.value != null) {
error.value = null;
_close();
_methodChannel.invokeMethod('open', {
'id': id.value,
'value': source,
});
}
loading.value = true;
}
}