USBPrinter constructor

USBPrinter({
  1. String? id,
  2. String? name,
  3. String? address,
  4. int? deviceId,
  5. int? vendorId,
  6. int? productId,
  7. bool connected = false,
  8. int type = 0,
  9. ConnectionType? connectionType,
})

Implementation

USBPrinter({
  String? id,
  String? name,
  String? address,
  int? deviceId,
  int? vendorId,
  int? productId,
  bool connected: false,
  int type: 0,
  ConnectionType? connectionType,
}) {
  this.id = id;
  this.name = name;
  this.address = address;
  this.deviceId = deviceId;
  this.vendorId = vendorId;
  this.productId = productId;
  this.connected = connected;
  this.type = type;
  this.connectionType = ConnectionType.usb;
}