SerialReadInfo class
class SerialReadInfo extends ChromeObject { SerialReadInfo({int bytesRead, ArrayBuffer data}) { if (bytesRead != null) this.bytesRead = bytesRead; if (data != null) this.data = data; } SerialReadInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); int get bytesRead => jsProxy['bytesRead']; set bytesRead(int value) => jsProxy['bytesRead'] = value; ArrayBuffer get data => _createArrayBuffer(jsProxy['data']); set data(ArrayBuffer value) => jsProxy['data'] = jsify(value); }
Extends
ChromeObject > SerialReadInfo
Constructors
new SerialReadInfo({int bytesRead, ArrayBuffer data}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
SerialReadInfo({int bytesRead, ArrayBuffer data}) { if (bytesRead != null) this.bytesRead = bytesRead; if (data != null) this.data = data; }
new SerialReadInfo.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
SerialReadInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
int bytesRead #
int get bytesRead => jsProxy['bytesRead'];
set bytesRead(int value) => jsProxy['bytesRead'] = value;
ArrayBuffer data #
ArrayBuffer get data => _createArrayBuffer(jsProxy['data']);
set data(ArrayBuffer value) => jsProxy['data'] = jsify(value);
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();