TargetPrinter constructor

const TargetPrinter({
  1. required String name,
  2. required String host,
  3. String transport = PrinterTransport.network,
  4. bool isDefault = false,
  5. String language = PrinterLanguage.escpos,
  6. int widthDots = 384,
  7. int paperWidthMm = 0,
  8. int paperHeightMm = 0,
  9. int dpi = 203,
  10. bool compress = false,
  11. int plGapMm = 2,
  12. int plDensity = 8,
  13. int plDirection = 0,
  14. String xpCut = 'partial',
  15. int xpDensity = 0,
})

Implementation

const TargetPrinter({
  required this.name,
  required this.host,
  this.transport = PrinterTransport.network,
  this.isDefault = false,
  this.language = PrinterLanguage.escpos,
  this.widthDots = 384,
  this.paperWidthMm = 0,
  this.paperHeightMm = 0,
  this.dpi = 203,
  this.compress = false,
  this.plGapMm = 2,
  this.plDensity = 8,
  this.plDirection = 0,
  this.xpCut = 'partial',
  this.xpDensity = 0,
});