bulkTransfer method

Future<TransferResultInfo> bulkTransfer(
  1. ConnectionHandle handle,
  2. GenericTransferInfo transferInfo
)

Performs a bulk transfer on the specified device. |handle|: An open connection to the device. |transferInfo|: The transfer parameters.

Implementation

Future<TransferResultInfo> bulkTransfer(
  ConnectionHandle handle,
  GenericTransferInfo transferInfo,
) async {
  var $res = await promiseToFuture<$js.TransferResultInfo>(
      $js.chrome.usb.bulkTransfer(
    handle.toJS,
    transferInfo.toJS,
  ));
  return TransferResultInfo.fromJS($res);
}