BluetoothDevice.fromScanResult constructor

BluetoothDevice.fromScanResult(
  1. ScanResult result
)

Implementation

factory BluetoothDevice.fromScanResult(ScanResult result) => BluetoothDevice(
  bluetoothDeviceId: result.device.remoteId.str,
  bluetoothDeviceName: result.device.platformName,
  connectable: result.advertisementData.connectable,
  txPowerLevel: result.advertisementData.txPowerLevel,
  advertisementName: result.advertisementData.advName,
  rssi: result.rssi,
);