BluetoothDevice.fromRangingResult constructor

BluetoothDevice.fromRangingResult(
  1. Beacon result,
  2. String beaconName
)

Implementation

factory BluetoothDevice.fromRangingResult(Beacon result, String beaconName) =>
    BluetoothDevice(
      bluetoothDeviceId: beaconName,
      bluetoothDeviceName: beaconName,
      connectable: false,
      txPowerLevel: result.txPower,
      advertisementName: beaconName,
      rssi: result.rssi,
    );