UsbDevice class

UsbDevice holds the USB device information

This is used to determine which Usb Device to open.

Constructors

UsbDevice(int? vid, int? pid, String? productName, String? manufacturerName, int? deviceId, String? serial)

Properties

deviceId int?
The device id is unique to this Usb Device until it is unplugged. when replugged this ID will be different.
final
hashCode int
The hash code for this object.
no setterinherited
manufacturerName String?
final
pid int?
Product Id
final
productName String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serial String?
The Serial number from the USB device.
final
vid int?
Vendor Id
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJSON(dynamic json) UsbDevice