WriteOptions class
Options for the write function.
class WriteOptions extends ChromeObject { WriteOptions({Socket socket, ArrayBuffer data}) { if (socket != null) this.socket = socket; if (data != null) this.data = data; } WriteOptions.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); Socket get socket => _createSocket(jsProxy['socket']); set socket(Socket value) => jsProxy['socket'] = jsify(value); ArrayBuffer get data => _createArrayBuffer(jsProxy['data']); set data(ArrayBuffer value) => jsProxy['data'] = jsify(value); }
Extends
ChromeObject > WriteOptions
Constructors
new WriteOptions({Socket socket, ArrayBuffer data}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
WriteOptions({Socket socket, ArrayBuffer data}) { if (socket != null) this.socket = socket; if (data != null) this.data = data; }
new WriteOptions.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
WriteOptions.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
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();