transferOut method
Future<USBOutTransferResult>
transferOut(
- dynamic device,
- int endpointNumber,
- dynamic data
override
Sends a bulk or interrupt transfer to the specified endpoint of the device. Returns the Future resolved with the transfer status and the number of bytes written.
Implementation
@override
Future<USBOutTransferResult> transferOut(
dynamic device, int endpointNumber, dynamic data) {
return methodChannel.invokeMethod<bool>('transferOut', [
device,
endpointNumber,
data
]).then<USBOutTransferResult>((dynamic result) => result);
}