SocketInfo class
class SocketInfo extends ChromeObject { SocketInfo({SocketType socketType, bool connected, String peerAddress, int peerPort, String localAddress, int localPort}) { if (socketType != null) this.socketType = socketType; if (connected != null) this.connected = connected; if (peerAddress != null) this.peerAddress = peerAddress; if (peerPort != null) this.peerPort = peerPort; if (localAddress != null) this.localAddress = localAddress; if (localPort != null) this.localPort = localPort; } SocketInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); SocketType get socketType => _createSocketType(jsProxy['socketType']); set socketType(SocketType value) => jsProxy['socketType'] = jsify(value); bool get connected => jsProxy['connected']; set connected(bool value) => jsProxy['connected'] = value; String get peerAddress => jsProxy['peerAddress']; set peerAddress(String value) => jsProxy['peerAddress'] = value; int get peerPort => jsProxy['peerPort']; set peerPort(int value) => jsProxy['peerPort'] = value; String get localAddress => jsProxy['localAddress']; set localAddress(String value) => jsProxy['localAddress'] = value; int get localPort => jsProxy['localPort']; set localPort(int value) => jsProxy['localPort'] = value; }
Extends
ChromeObject > SocketInfo
Constructors
new SocketInfo({SocketType socketType, bool connected, String peerAddress, int peerPort, String localAddress, int localPort}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
SocketInfo({SocketType socketType, bool connected, String peerAddress, int peerPort, String localAddress, int localPort}) { if (socketType != null) this.socketType = socketType; if (connected != null) this.connected = connected; if (peerAddress != null) this.peerAddress = peerAddress; if (peerPort != null) this.peerPort = peerPort; if (localAddress != null) this.localAddress = localAddress; if (localPort != null) this.localPort = localPort; }
new SocketInfo.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
SocketInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
bool connected #
bool get connected => jsProxy['connected'];
set connected(bool value) => jsProxy['connected'] = value;
String localAddress #
String get localAddress => jsProxy['localAddress'];
set localAddress(String value) => jsProxy['localAddress'] = value;
int localPort #
int get localPort => jsProxy['localPort'];
set localPort(int value) => jsProxy['localPort'] = value;
String peerAddress #
String get peerAddress => jsProxy['peerAddress'];
set peerAddress(String value) => jsProxy['peerAddress'] = value;
int peerPort #
int get peerPort => jsProxy['peerPort'];
set peerPort(int value) => jsProxy['peerPort'] = value;
SocketType socketType #
SocketType get socketType => _createSocketType(jsProxy['socketType']);
set socketType(SocketType value) => jsProxy['socketType'] = jsify(value);
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();