connect method
connect to a device by ID.
Implementation
Future<void> connect(String deviceId) async {
try {
await _channel.invokeMethod('connect', {'deviceId': deviceId});
} on PlatformException catch (e) {
throw Exception('Failed to connect: ${e.message}');
}
}