BluetoothDevice.fromScanResult constructor
BluetoothDevice.fromScanResult(
- ScanResult result
Implementation
factory BluetoothDevice.fromScanResult(ScanResult result) => BluetoothDevice(
bluetoothDeviceId: result.device.id.id,
bluetoothDeviceName: result.device.name,
connectable: result.advertisementData.connectable,
txPowerLevel: result.advertisementData.txPowerLevel,
advertisementName: result.advertisementData.localName,
rssi: result.rssi,
bluetoothDeviceType: getBluetoothDeviceType(
result.device.type,
));