SunmiPrinter class

Constructors

SunmiPrinter()

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

Operators

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

Static Methods

bindingPrinter() Future<bool?>
exitLabelPrint() Future<void>
Exit into the label printing mode
exitTransactionPrint([bool clear = true]) Future<void>
Exit the transaction printing mode
getPrinterMode() Future<String>
mode = NORMAL_MODE , BLACK_LABEL_MODE, LABEL_MODE if want to print label please change the printer mode to label mode.
getPrinterStatus() Future<String?>
initPrinter() Future<bool?>
reset all setting
lineWrap(int lines) Future<void>
printImage(Uint8List img) Future<void>
uint8List format image
printText(String text) Future<void>
setAlignment(int alignment) Future<void>
0 align left, 1 center, 2 align right.
startLabelPrint() Future<void>
Enter into the label printing mode
startTransactionPrint([bool clear = false]) Future<void>
Enter into the transaction printing mode
submitTransactionPrint() Future<void>
Submit transaction printing
unbindingPrinter() Future<bool?>