BluetoothDevice.fromProto constructor Null safety
- BluetoothDevice device
Implementation
factory BluetoothDevice.fromProto(proto.BluetoothDevice device) =>
BluetoothDevice(
id: device.id,
name: device.name,
rssi: device.rssi,
bluetoothClass: device.bluetoothClass,
bluetoothType: BluetoothDeviceType.fromProto(device.bluetoothType));