transferIn method
Waits for a bulk or interrupt transfer from the device on a specified endpoint. Returns the Future resolved with the transfer data and status.
Implementation
@override
Future<USBInTransferResult> transferIn(
dynamic device, int endpointNumber, int length) {
return methodChannel.invokeMethod<bool>('transferIn', [
device,
endpointNumber,
length
]).then<USBInTransferResult>((dynamic result) => result);
}