Generator class

Constructors

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

Properties

hashCode int
The hash code for this object.
no setterinherited
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}) 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
drawImage(Image dst, Image src, {int? dstX, int? dstY, int? dstW, int? dstH, int? srcX, int? srcY, int? srcW, int? srcH, bool blend = true}) → Image
Draw the image src onto the image dst.
emptyLines(int n) List<int>
Skips n lines
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
oldRrow(List<PosColumn> cols) List<int>
Print a row.
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>
textLeftRight(String leftText, String rightText, {bool containsChinese = false}) List<int>
toString() String
A string representation of this object.
inherited

Operators

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