Generator class

Constructors

Generator({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

beep({int n = 3, PosBeepDuration duration = PosBeepDuration.beep450ms}) List<int>
Beeps n times
beepFlash({int n = 3, PosBeepDuration duration = PosBeepDuration.beep450ms, PosBeepFlashMode mode = PosBeepFlashMode.BuzzFlash}) List<int>
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
image(Image imgSrc, {PosAlign align = PosAlign.center, int threshold = 150}) Uint8List
Print an image using (ESC *) command
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rawBytes(List<int> cmd, {bool isKanji = false}) List<int>
Sens raw command(s)
reset() List<int>
Clear the buffer and reset text styles
resetLineSpacing() List<int>
reverseFeed(int n) List<int>
Reverse feed for n lines (if supported by the priner)
setLineSpacing(int spacing) List<int>
setStyles(PosStyles styles, {bool isKanji = false}) List<int>
toString() String
A string representation of this object.
inherited

Operators

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