TargetPrinter constructor
const
TargetPrinter({
- required String name,
- required String host,
- String transport = PrinterTransport.network,
- bool isDefault = false,
- String language = PrinterLanguage.escpos,
- int widthDots = 384,
- int paperWidthMm = 0,
- int paperHeightMm = 0,
- int dpi = 203,
- bool compress = false,
- int plGapMm = 2,
- int plDensity = 8,
- int plDirection = 0,
- String xpCut = 'partial',
- 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,
});