sendDataToUsb method
Implementation
Future<bool?> sendDataToUsb(List<int> data) async {
try {
final sendResult = await methodChannel.invokeMethod<bool>('sendData', {
'data': data,
});
return sendResult;
} on PlatformException catch (e) {
print("Failed to send data to USB: '${e.message}'.");
return false;
}
}