Generator class
Methods
-
barcode(Barcode barcode, {int? width, int? height, BarcodeFont? font, BarcodeText textPos = BarcodeText.below, PosAlign align = PosAlign.center})
→ List<int>
-
Print a barcode
-
beep({int n = 3, PosBeepDuration duration = PosBeepDuration.beep450ms})
→ List<int>
-
Beeps
n
times
-
cut({PosCutMode mode = PosCutMode.full})
→ List<int>
-
Cut the paper
-
drawer({PosDrawer pin = PosDrawer.pin2})
→ List<int>
-
Open cash drawer
-
emptyLines(int n)
→ List<int>
-
Skips
n
lines
-
endJob()
→ List<int>
-
Ends printer job.
-
feed(int n)
→ List<int>
-
Skips
n
lines
-
hr({String ch = '-', int? len, int linesAfter = 0})
→ List<int>
-
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})
→ List<int>
-
Print an image using (ESC *) command
-
imageRaster(Image image, {PosAlign align = PosAlign.center, bool highDensityHorizontal = true, bool highDensityVertical = true, PosImageFn imageFn = PosImageFn.bitImageRaster})
→ List<int>
-
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})
→ List<int>
-
Print selected code table.
-
qrcode(String text, {PosAlign align = PosAlign.center, QRSize size = QRSize.size4, QRCorrection cor = QRCorrection.L})
→ List<int>
-
Print a QR Code
-
rawBytes(List<int> cmd, {bool isKanji = false})
→ List<int>
-
Sens raw command(s)
-
reset()
→ List<int>
-
Clear the buffer and reset text styles
-
reverseFeed(int n)
→ List<int>
-
Reverse feed for
n
lines (if supported by the priner)
-
row(List<PosColumn> cols)
→ List<int>
-
Print a row.
-
setGlobalCodeTable(String? codeTable)
→ List<int>
-
Set global code table which will be used instead of the default printer's code table
(even after resetting)
-
setGlobalFont(PosFontType? font, {int? maxCharsPerLine})
→ List<int>
-
Set global font which will be used instead of the default printer's font
(even after resetting)
-
setStyles(PosStyles styles, {bool isKanji = false})
→ List<int>
-
-
text(String text, {PosStyles styles = const PosStyles(), int linesAfter = 0, bool containsChinese = false, int? maxCharsPerLine})
→ List<int>
-
-
textEncoded(Uint8List textBytes, {PosStyles styles = const PosStyles(), int linesAfter = 0, int? maxCharsPerLine})
→ List<int>
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
transmissionOfStatus({int n = 1})
→ List<int>
-
Request transmission of printer status.