NyxPrinter class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
clearLabelLearning()
→ Future<void>
-
Clear label learning data
-
configLcd(LcdOpt opt)
→ Future<void>
-
Control the status of the customer display LCD
PrinterService >= v1.6.3
-
getPrinterStatus()
→ Future<int?>
-
get printer status PrinterStatus
-
getPrinterVersion()
→ Future<String?>
-
get printer firmware version
-
getServiceVersion()
→ Future<String?>
-
get printer service version
-
hasLabelLearning()
→ Future<void>
-
Label learning has been performed
-
labelDetectAuto()
→ Future<void>
-
Label learning by automatic label detection.
This method will start label learning
-
labelLocate(int labelHeight, int labelGap)
→ Future<void>
-
Locate the next label
-
labelLocateAuto()
→ Future<void>
-
Auto locate label. This method only can be called on the system that has
performed abel learning by labelDetectAuto
-
labelPrintEnd()
→ Future<void>
-
Label printing ends, paper automatically moves to the tear-off position.
This method must appear in pairs with labelLocate
-
openCashBox()
→ Future<void>
-
Open cash drawer
PrinterService >= v1.6.1
-
paperBack(int px)
→ Future<void>
-
-
paperOut(int px)
→ Future<void>
-
-
printBarcode(String data, int width, int height, {BarcodeTextPosition textPosition = BarcodeTextPosition.NO_TEXT, PrintAlign align = PrintAlign.LEFT})
→ Future<void>
-
-
printEndAutoOut()
→ Future<void>
-
After printing, feed paper to cutting position
-
printEscposData(Uint8List data)
→ Future<void>
-
Print ESC/POS commands
-
printImage(Uint8List img, {ImageType type = ImageType.BLACK_WHITE, PrintAlign align = PrintAlign.LEFT})
→ Future<void>
-
-
printQrCode(String data, int width, int height, {PrintAlign align = PrintAlign.LEFT})
→ Future<void>
-
-
printRasterData(Uint8List data)
→ Future<void>
-
Print raster bitmap data
-
printTableText(List<String> texts, List<int> weights, List<PrintTextStyle> styles)
→ Future<void>
-
Print a row of a table
-
printText(String text, PrintTextStyle? style, {int? textWidth, PrintAlign? align})
→ Future<void>
-
-
showLcdImage(Uint8List img)
→ Future<void>
-
Show bitmap in customer display LCD
PrinterService version >= v1.5.9