EscPosGenerator class

Constructors

EscPosGenerator(EscPaperSize _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(BarcodeType type, String data, {PosAlign align = PosAlign.center, int height = 100, int width = 3, BarcodeHri hri = BarcodeHri.below}) → List<int>
Print a 1D barcode using GS k (Form 2, laengen-praefigiert).
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
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(RasterImage imgSrc, {PosAlign align = PosAlign.center}) → List<int>
Print an image using (ESC *) command
imageRaster(RasterImage 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
qrcode(String text, {PosAlign align = PosAlign.center, QRSize size = QRSize.size4, QRCorrection cor = QRCorrection.L, bool model1 = false}) → List<int>
Print a QR Code
reset() → List<int>
Clear the buffer and reset text styles
reverseFeed(int n) → List<int>
Reverse feed for n lines (if supported by the printer)
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)
setPrintArea() → List<int>
GS L + GS W: linker Rand auf 0, Druckbereich auf die Breite des Blatts -- Zeichen je Zeile in Font A mal 12 Punkte (32 -> 384, 48 -> 576).
setStyles(PosStyles styles, {bool atLineStart = true}) → List<int>
atLineStart (Vorgabe true) sagt, ob dieser Aufruf am Anfang einer Druckzeile steht. Nur dort nimmt der Drucker ESC a (Ausrichtung) ueberhaupt an; mitten in der Zeile verwirft er den Befehl wortlos. Der Bytestrom bekommt ihn trotzdem -- die Bytefolge soll sich dadurch nicht aendern --, aber der intern gemerkte Zustand darf sich NICHT auf den neuen Wert stellen: sonst haelt eine spaetere, echte Zeile die Ausrichtung faelschlich schon fuer gesetzt und unterlaesst den Befehl.
text(String text, {PosStyles styles = const PosStyles(), int linesAfter = 0, int? maxCharsPerLine}) → List<int>
toString() → String
A string representation of this object.
inherited

Operators

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