BluetoothDevice.fromProto constructor Null safety

BluetoothDevice.fromProto(
  1. 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));