transferOut method

  1. @override
Future<USBOutTransferResult> transferOut(
  1. dynamic device,
  2. int endpointNumber,
  3. 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);
}