PrintCommand constructor
PrintCommand({
- required String text,
- PrintAlignment alignment = PrintAlignment.left,
- PrintFontSize fontSize = PrintFontSize.medium,
- PrintFontWeight fontWeight = PrintFontWeight.normal,
- bool isBarcode = false,
- bool isQRCode = false,
- String? barcodeData,
- int? lineSpacing,
- double? x,
- double? y,
- double? xMultiplication,
- double? yMultiplication,
- int? rotation,
- String? codePage,
- int? fontNumber,
- bool isImage = false,
- String? imagePath,
- double? imageWidth,
- double? imageHeight,
- bool isBlock = false,
- double? blockWidth,
- double? blockHeight,
- int? blockLineWidth,
- int? blockLineStyle,
- 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,
});