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