Device class
Returned by getDevices
to identify a connected USB device.
class Device extends ChromeObject { Device({int device, int vendorId, int productId}) { if (device != null) this.device = device; if (vendorId != null) this.vendorId = vendorId; if (productId != null) this.productId = productId; } Device.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); int get device => jsProxy['device']; set device(int value) => jsProxy['device'] = value; int get vendorId => jsProxy['vendorId']; set vendorId(int value) => jsProxy['vendorId'] = value; int get productId => jsProxy['productId']; set productId(int value) => jsProxy['productId'] = value; }
Extends
ChromeObject > Device
Constructors
new Device({int device, int vendorId, int productId}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
Device({int device, int vendorId, int productId}) { if (device != null) this.device = device; if (vendorId != null) this.vendorId = vendorId; if (productId != null) this.productId = productId; }
new Device.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
Device.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
int device #
int get device => jsProxy['device'];
set device(int value) => jsProxy['device'] = value;
int productId #
int get productId => jsProxy['productId'];
set productId(int value) => jsProxy['productId'] = value;
int vendorId #
int get vendorId => jsProxy['vendorId'];
set vendorId(int value) => jsProxy['vendorId'] = value;
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();