connect method
Opens a serial connection to device at baudRate.
Implementation
@override
Future<bool> connect(UsbDevice device, {int baudRate = 9600}) async {
final result = await methodChannel.invokeMethod<bool>('connect', {
'vendorId': device.vendorId,
'productId': device.productId,
'baudRate': baudRate,
});
return result ?? false;
}