toProto method Null safety

BluetoothDevice toProto()

Implementation

proto.BluetoothDevice toProto() => proto.BluetoothDevice(
    id: id,
    name: name,
    rssi: rssi,
    bluetoothClass: bluetoothClass,
    bluetoothType: bluetoothType.toProto());