EscPosBuilder class

Constructors

EscPosBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() List<EscPosCmd>
cutPaper({CutPaper paperCut = const CutPaper.functionB(n: 0)}) → void
Cut paper and optionally specify the CuttingShape and the amount of paper feed.
initializePrinter() → void
Clears the data in the print buffer and resets the printer modes to the modes that were in effect when the power was turned on.
lineFeed() → void
Prints the data in the print buffer and feeds one line, based on the current line spacing.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printBitmapFromBinary(Uint8List bytes, {PrintAlignment? alignment}) → void
printBitmapFromPixels({required Uint8List byteColors, required int width, required int height, PrintAlignment? alignment}) → void
printQrCode(String data, {QrCodeModel model = QrCodeModel.model1, int size = 6, QrErrorLevel errorLevel = QrErrorLevel.low, PrintAlignment? alignment}) → void
Print QrCode containing data and specify it's model, size and errorLevel.
printText(String text, {String charset = "gbk", BoldMode? bold, UnderlineMode? underline, FontType? fontType, FontSize? fontSize, PrintAlignment? alignment}) → void
printTextColumn() → void
raw(Uint8List bytes) → void
Send raw bytes
setAlignment(PrintAlignment alignment) → void
setBold({required BoldMode mode}) → void
setFontSize({FontSize fontSize = const FontSize(width: 0, height: 0)}) → void
setFontType({required FontType fontType}) → void
setUnderline({required UnderlineMode mode}) → void
toString() String
A string representation of this object.
inherited

Operators

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