WebBluetoothDevice.fromJSObject constructor
WebBluetoothDevice.fromJSObject(
- Object _jsObject
Create a new instance from a js object.
This should only be done by the library or if you're testing.
To get an instance use Bluetooth.requestDevice.
Implementation
WebBluetoothDevice.fromJSObject(this._jsObject) {
if (!_JSUtil.hasProperty(_jsObject, "id")) {
throw UnsupportedError("JSObject does not have an id.");
}
}