PrinterInfo constructor
PrinterInfo({
- Model? printerModel,
- Port port = Port.BLUETOOTH,
- String ipAddress = "",
- String macAddress = "",
- dynamic localName = "",
- dynamic lastConnectedAddress = "",
- PaperSize paperSize = PaperSize.A4,
- Orientation orientation = Orientation.PORTRAIT,
- int numberOfCopies = 1,
- Halftone halftone = Halftone.PATTERNDITHER,
- PrintMode printMode = PrintMode.FIT_TO_PAGE,
- Align align = Align.LEFT,
- VAlign valign = VAlign.TOP,
- Margin margin = const Margin(top: 0, left: 0),
- bool pjCarbon = false,
- int pjDensity = 5,
- PjFeedMode pjFeedMode = PjFeedMode.PJ_FEED_MODE_FIXEDPAGE,
- int customPaperWidth = 0,
- int customPaperLength = 0,
- int customFeed = 0,
- int rjDensity = 0,
- bool rotate180 = false,
- bool peelMode = false,
- bool mirrorPrint = false,
- Align paperPosition = Align.CENTER,
- bool isAutoCut = true,
- bool isCutAtEnd = true,
- bool mode9 = true,
- bool skipStatusCheck = false,
- CheckPrintEnd checkPrintEnd = CheckPrintEnd.CPE_CHECK,
- PjRollCase rollPrinterCase = PjRollCase.PJ_ROLLCASE_OFF,
- int pjSpeed = 2,
- int thresholdingValue = 127,
- bool dashLine = false,
- String savePrnPath = "",
- bool overwrite = true,
- bool isHalfCut = false,
- bool isSpecialTape = false,
- int labelNameIndex = -1,
- String customPaper = "",
- ACustomPaper? binCustomPaper = null,
- CustomPaperInfo? customPaperInfo = null,
- bool isLabelEndCut = false,
- PrintQuality printQuality = PrintQuality.NORMAL,
- int labelMargin = 0,
- double scaleValue = 1.0,
- bool isCutMark = false,
- bool softFocusing = false,
- bool trimTapeAfterData = false,
- bool enabledTethering = false,
- bool rawMode = false,
- String workPath = "",
- PjPaperKind pjPaperKind = PjPaperKind.PJ_CUT_PAPER,
- bool useLegacyHalftoneEngine = false,
- bool banishMargin = false,
- bool useCopyCommandInTemplatePrint = false,
Implementation
PrinterInfo(
{
Model? printerModel,
this.port = Port.BLUETOOTH,
this.ipAddress = "",
this.macAddress = "",
localName = "",
lastConnectedAddress = "",
this.paperSize = PaperSize.A4,
this.orientation = Orientation.PORTRAIT,
this.numberOfCopies = 1,
this.halftone = Halftone.PATTERNDITHER,
this.printMode = PrintMode.FIT_TO_PAGE,
this.align = Align.LEFT,
this.valign = VAlign.TOP,
this.margin = const Margin(top: 0, left: 0),
this.pjCarbon = false,
this.pjDensity = 5,
this.pjFeedMode = PjFeedMode.PJ_FEED_MODE_FIXEDPAGE,
this.customPaperWidth = 0,
this.customPaperLength = 0,
this.customFeed = 0,
this.rjDensity = 0,
this.rotate180 = false,
this.peelMode = false,
this.mirrorPrint = false,
this.paperPosition = Align.CENTER,
this.isAutoCut = true,
this.isCutAtEnd = true,
this.mode9 = true,
this.skipStatusCheck = false,
this.checkPrintEnd = CheckPrintEnd.CPE_CHECK,
this.rollPrinterCase = PjRollCase.PJ_ROLLCASE_OFF,
this.pjSpeed = 2,
this.thresholdingValue = 127,
//this.timeout = new TimeoutSetting(),
this.dashLine = false,
this.savePrnPath = "",
this.overwrite = true,
this.isHalfCut = false,
this.isSpecialTape = false,
this.labelNameIndex = -1,
this.customPaper = "",
this.binCustomPaper = null,
this.customPaperInfo = null,
this.isLabelEndCut = false,
this.printQuality = PrintQuality.NORMAL,
this.labelMargin = 0,
this.scaleValue = 1.0,
this.isCutMark = false,
this.softFocusing = false,
this.trimTapeAfterData = false,
this.enabledTethering = false,
this.rawMode = false,
this.workPath = "",
this.pjPaperKind = PjPaperKind.PJ_CUT_PAPER,
this.useLegacyHalftoneEngine = false,
this.banishMargin = false,
this.useCopyCommandInTemplatePrint = false}):
this.printerModel = printerModel == null ? Model.PJ_663 : printerModel,
this._lastConnectedAddress = "", this._localName = "",
_labelName = QL700.W62;