disposeInstance method
Tear down the session. Cancels any in-flight recording, releases the camera device and the audio claim. Safe to call repeatedly; no-op once disposed.
Implementation
@override
Future<void> disposeInstance(int handle) async {
disposeCalls.add(handle);
await _eventControllers.remove(handle)?.close();
}