USBPrinterManager constructor

USBPrinterManager(
  1. POSPrinter printer,
  2. dynamic paperSize,
  3. dynamic profile, {
  4. int spaceBetweenRows = 5,
  5. int port = 9100,
})

Implementation

USBPrinterManager(
  POSPrinter printer,
  PaperSize paperSize,
  CapabilityProfile profile, {
  int spaceBetweenRows = 5,
  int port: 9100,
}) {
  super.printer = printer;
  super.address = printer.address;
  super.productId = printer.productId;
  super.deviceId = printer.deviceId;
  super.vendorId = printer.vendorId;
  super.paperSize = paperSize;
  super.profile = profile;
  super.spaceBetweenRows = spaceBetweenRows;
  super.port = port;
  generator =
      Generator(paperSize, profile, spaceBetweenRows: spaceBetweenRows);
}