Dart Documentationchrome.socketRecvFromInfo

RecvFromInfo class

class RecvFromInfo extends ChromeObject {
 RecvFromInfo({int resultCode, ArrayBuffer data, String address, int port}) {
   if (resultCode != null) this.resultCode = resultCode;
   if (data != null) this.data = data;
   if (address != null) this.address = address;
   if (port != null) this.port = port;
 }
 RecvFromInfo.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);

 String get address => jsProxy['address'];
 set address(String value) => jsProxy['address'] = value;

 int get port => jsProxy['port'];
 set port(int value) => jsProxy['port'] = value;
}

Extends

ChromeObject > RecvFromInfo

Constructors

new RecvFromInfo({int resultCode, ArrayBuffer data, String address, int port}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
RecvFromInfo({int resultCode, ArrayBuffer data, String address, int port}) {
 if (resultCode != null) this.resultCode = resultCode;
 if (data != null) this.data = data;
 if (address != null) this.address = address;
 if (port != null) this.port = port;
}

new RecvFromInfo.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
RecvFromInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

String address #

String get address => jsProxy['address'];
set address(String value) => jsProxy['address'] = value;

ArrayBuffer data #

ArrayBuffer get data => _createArrayBuffer(jsProxy['data']);
set data(ArrayBuffer value) => jsProxy['data'] = jsify(value);

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

int port #

int get port => jsProxy['port'];
set port(int value) => jsProxy['port'] = value;

int resultCode #

int get resultCode => jsProxy['resultCode'];
set resultCode(int value) => jsProxy['resultCode'] = value;

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();