Device constructor

Device({
  1. required int device,
  2. required int vendorId,
  3. required int productId,
  4. required int version,
  5. required String productName,
  6. required String manufacturerName,
  7. required String serialNumber,
})

Implementation

Device({
  /// An opaque ID for the USB device. It remains unchanged until the device
  /// is
  /// unplugged.
  required int device,

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

  /// The product ID.
  required int productId,

  /// The device version (bcdDevice field).
  required int version,

  /// The iProduct string read from the device, if available.
  required String productName,

  /// The iManufacturer string read from the device, if available.
  required String manufacturerName,

  /// The iSerialNumber string read from the device, if available.
  required String serialNumber,
}) : _wrapped = $js.Device(
        device: device,
        vendorId: vendorId,
        productId: productId,
        version: version,
        productName: productName,
        manufacturerName: manufacturerName,
        serialNumber: serialNumber,
      );