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