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