Ticket class

Constructors

Ticket(PaperSize _paperSize, CapabilityProfile _profile, {int spaceBetweenRows = 5})

Properties

bytes List<int>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
nonlatin1 RegExp
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spaceBetweenRows int
getter/setter pair

Methods

barcode(Barcode barcode, {int? width, int? height, BarcodeFont? font, BarcodeText textPos = BarcodeText.below, PosAlign align = PosAlign.center}) → void
Print a barcode
beep({int n = 3, PosBeepDuration duration = PosBeepDuration.beep450ms}) → void
Beeps n times
cut({PosCutMode mode = PosCutMode.full}) → void
Cut the paper
drawer({PosDrawer pin = PosDrawer.pin2}) → void
Open cash drawer
emptyLines(int n) → void
Skips n lines
feed(int n) → void
Skips n lines
hr({String ch = '-', int? len, dynamic linesAfter = 0}) → void
Print horizontal full width separator If len is null, then it will be defined according to the paper width
image(Image imgSrc, {PosAlign align = PosAlign.center}) → void
Print an image using (ESC *) command
imageRaster(Image image, {PosAlign align = PosAlign.center, bool highDensityHorizontal = true, bool highDensityVertical = true, PosImageFn imageFn = PosImageFn.bitImageRaster}) → void
Print an image using (GS v 0) obsolete command
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printCodeTable({String? codeTable}) → void
Print selected code table.
qrcode(String text, {PosAlign align = PosAlign.center, QRSize size = QRSize.Size4, QRCorrection cor = QRCorrection.L}) → void
Print a QR Code
rawBytes(List<int> cmd, {bool isKanji = false}) → void
Sens raw command(s)
reset() → void
Clear the buffer and reset text styles
reverseFeed(int n) → void
Reverse feed for n lines (if supported by the priner)
row(List<PosColumn> cols) → void
Print a row.
setGlobalCodeTable(String? codeTable) → void
Set global code table which will be used instead of the default printer's code table (even after resetting)
setGlobalFont(PosFontType? font, {int? maxCharsPerLine}) → void
Set global font which will be used instead of the default printer's font (even after resetting)
setModeReadOnline() → void
setStyles(PosStyles styles, {bool isKanji = false}) → void
text(String text, {PosStyles styles = const PosStyles(), int linesAfter = 0, bool containsChinese = false, int? maxCharsPerLine}) → void
textEncoded(Uint8List textBytes, {PosStyles styles = const PosStyles(), int linesAfter = 0, int? maxCharsPerLine}) → void
toString() String
A string representation of this object.
inherited

Operators

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