dispose method
Release all resources.
Call this when the virtual background feature is no longer needed.
Implementation
Future<void> dispose() async {
if (!isSupported) {
return;
}
try {
await _channel.invokeMethod('dispose');
_isEnabled = false;
_isInitialized = false;
} catch (e) {
// Ignore dispose errors
}
}