PrintCommand constructor

PrintCommand({
  1. required String text,
  2. PrintAlignment alignment = PrintAlignment.left,
  3. PrintFontSize fontSize = PrintFontSize.medium,
  4. PrintFontWeight fontWeight = PrintFontWeight.normal,
  5. bool isBarcode = false,
  6. bool isQRCode = false,
  7. String? barcodeData,
  8. int? lineSpacing,
  9. double? x,
  10. double? y,
  11. double? xMultiplication,
  12. double? yMultiplication,
  13. int? rotation,
  14. String? codePage,
  15. int? fontNumber,
  16. bool isImage = false,
  17. String? imagePath,
  18. double? imageWidth,
  19. double? imageHeight,
  20. bool isBlock = false,
  21. double? blockWidth,
  22. double? blockHeight,
  23. int? blockLineWidth,
  24. int? blockLineStyle,
  25. String? blockText,
})

Implementation

PrintCommand({
  required this.text,
  this.alignment = PrintAlignment.left,
  this.fontSize = PrintFontSize.medium,
  this.fontWeight = PrintFontWeight.normal,
  this.isBarcode = false,
  this.isQRCode = false,
  this.barcodeData,
  this.lineSpacing,
  this.x,
  this.y,
  this.xMultiplication,
  this.yMultiplication,
  this.rotation,
  this.codePage,
  this.fontNumber,
  this.isImage = false,
  this.imagePath,
  this.imageWidth,
  this.imageHeight,
  this.isBlock = false,
  this.blockWidth,
  this.blockHeight,
  this.blockLineWidth,
  this.blockLineStyle,
  this.blockText,
});