ConnectionHandle constructor

ConnectionHandle({
  1. required int handle,
  2. required int vendorId,
  3. required int productId,
})

Implementation

ConnectionHandle({
  /// An opaque handle representing this connection to the USB device and all
  /// associated claimed interfaces and pending transfers. A new handle is
  /// created each time the device is opened. The connection handle is
  /// different from [Device.device].
  required int handle,

  /// The device vendor ID.
  required int vendorId,

  /// The product ID.
  required int productId,
}) : _wrapped = $js.ConnectionHandle(
        handle: handle,
        vendorId: vendorId,
        productId: productId,
      );