BluetoothDevice constructor Null safety

BluetoothDevice(
  1. {required String id,
  2. String? name,
  3. int? rssi,
  4. int bluetoothClass = 0,
  5. BluetoothDeviceType bluetoothType = BluetoothDeviceType.unknown}
)

Implementation

BluetoothDevice(
    {required this.id,
    this.name,
    this.rssi,
    this.bluetoothClass = 0,
    this.bluetoothType = BluetoothDeviceType.unknown})
    : super(PrinterDeviceType.bluetooth);