PrinterInfo constructor

PrinterInfo({
  1. Model? printerModel,
  2. Port port = Port.BLUETOOTH,
  3. String ipAddress = "",
  4. String macAddress = "",
  5. dynamic localName = "",
  6. dynamic lastConnectedAddress = "",
  7. PaperSize paperSize = PaperSize.A4,
  8. Orientation orientation = Orientation.PORTRAIT,
  9. int numberOfCopies = 1,
  10. Halftone halftone = Halftone.PATTERNDITHER,
  11. PrintMode printMode = PrintMode.FIT_TO_PAGE,
  12. Align align = Align.LEFT,
  13. VAlign valign = VAlign.TOP,
  14. Margin margin = const Margin(top: 0, left: 0),
  15. bool pjCarbon = false,
  16. int pjDensity = 5,
  17. PjFeedMode pjFeedMode = PjFeedMode.PJ_FEED_MODE_FIXEDPAGE,
  18. int customPaperWidth = 0,
  19. int customPaperLength = 0,
  20. int customFeed = 0,
  21. int rjDensity = 0,
  22. bool rotate180 = false,
  23. bool peelMode = false,
  24. bool mirrorPrint = false,
  25. Align paperPosition = Align.CENTER,
  26. bool isAutoCut = true,
  27. bool isCutAtEnd = true,
  28. bool mode9 = true,
  29. bool skipStatusCheck = false,
  30. CheckPrintEnd checkPrintEnd = CheckPrintEnd.CPE_CHECK,
  31. PjRollCase rollPrinterCase = PjRollCase.PJ_ROLLCASE_OFF,
  32. int pjSpeed = 2,
  33. int thresholdingValue = 127,
  34. bool dashLine = false,
  35. String savePrnPath = "",
  36. bool overwrite = true,
  37. bool isHalfCut = false,
  38. bool isSpecialTape = false,
  39. int labelNameIndex = -1,
  40. String customPaper = "",
  41. ACustomPaper? binCustomPaper = null,
  42. CustomPaperInfo? customPaperInfo = null,
  43. bool isLabelEndCut = false,
  44. PrintQuality printQuality = PrintQuality.NORMAL,
  45. int labelMargin = 0,
  46. double scaleValue = 1.0,
  47. bool isCutMark = false,
  48. bool softFocusing = false,
  49. bool trimTapeAfterData = false,
  50. bool enabledTethering = false,
  51. bool rawMode = false,
  52. String workPath = "",
  53. PjPaperKind pjPaperKind = PjPaperKind.PJ_CUT_PAPER,
  54. bool useLegacyHalftoneEngine = false,
  55. bool banishMargin = false,
  56. 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;