PrintCommand class
Constructors
-
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})
-
-
PrintCommand.barcode(String data, {double? x, double? y, int? rotation, String? codePage})
-
factory
-
PrintCommand.block(String text, {double? x, double? y, double? width, double? height, int? lineWidth = 0, int? lineStyle = 0})
-
factory
-
PrintCommand.clearScreen()
-
factory
-
PrintCommand.image(String imagePath, {double? x, double? y, double? width, double? height})
-
factory
-
PrintCommand.lineSpacing(int spacing)
-
factory
-
PrintCommand.qrCode(String data, {double? x, double? y, String? size = "M", String? errorCorrection = "5", String? model = "M1", int? rotation = 0})
-
factory
-
PrintCommand.setPrintArea(double width, double height)
-
factory
-
PrintCommand.text(String text, {PrintAlignment alignment = PrintAlignment.left, PrintFontSize fontSize = PrintFontSize.medium, PrintFontWeight fontWeight = PrintFontWeight.normal, double? x, double? y, double? xMultiplication, double? yMultiplication, int? rotation, String? codePage, int? fontNumber})
-
factory