disposeInstance method
Tear down the session. Releases the codec and any held surface / texture. Safe to call repeatedly; no-op once disposed.
Implementation
@override
Future<void> disposeInstance(int handle) async {
try {
await _invokeVoid('dispose', {'handle': handle});
} on XVideoPlayerException catch (e) {
if (e.code != 'disposed') rethrow;
}
}