UsbDevice constructor Null safety

UsbDevice(
  1. {required String name,
  2. required String version,
  3. String? manufactureName,
  4. String? productName,
  5. int? vendorId,
  6. int? productId,
  7. int? mainclass,
  8. int? subClass}
)

Implementation

UsbDevice(
    {required this.name,
    required this.version,
    this.manufactureName,
    this.productName,
    this.vendorId,
    this.productId,
    this.mainclass,
    this.subClass})
    : super(PrinterDeviceType.usb);