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