disconnect method
Desconecta del dispositivo actual
Implementation
Future<bool> disconnect() async {
try {
final result = await _channel.invokeMethod('disconnect');
if (result == true) {
_updateState(ScreenSharingState.disconnected);
return true;
}
return false;
} catch (e) {
_errorController.add('Error desconectando: $e');
return false;
}
}