PrintCommand class

Constructors

PrintCommand.new({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

Properties

alignment PrintAlignment
final
barcodeData String?
final
blockHeight double?
final
blockLineStyle int?
final
blockLineWidth int?
final
blockText String?
final
blockWidth double?
final
codePage String?
final
fontNumber int?
final
fontSize PrintFontSize
final
fontWeight PrintFontWeight
final
hashCode int
The hash code for this object.
no setterinherited
imageHeight double?
final
imagePath String?
final
imageWidth double?
final
isBarcode bool
final
isBlock bool
final
isImage bool
final
isQRCode bool
final
lineSpacing int?
final
rotation int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
final
x double?
final
xMultiplication double?
final
y double?
final
yMultiplication double?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited