SunmiPrinter class
Constructors
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?> - bind sunmi inner printer
-
exitLabelPrint(
) → Future< void> - Exit into the label printing mode
-
exitTransactionPrint(
[bool clear = true]) → Future< void> - Exit the transaction printing mode
-
getPrinterMode(
) → Future< PrinterMode> -
mode =
NORMAL_MODE , BLACK_LABEL_MODE, LABEL_MODE
if want to print label please change the printer mode to label mode. -
getPrinterStatus(
) → Future< PrinterStatus> - return enum status , if you want verbose status can use getPrinterStatusWithVerbose() .
-
getPrinterStatusWithVerbose(
) → Future< String?> - verbose explain of printer status
-
initPrinter(
) → Future< bool?> - Printer initialization
-
lineWrap(
int lines) → Future< void> - space how many next line
-
printImage(
Uint8List img) → Future< void> - uint8List format image
-
printText(
String text) → Future< void> - Print Text
-
setAlignment(
PrintAlign alignment) → Future< void> - alignment for your next line method ( images / text ).
-
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?> - unbind sunmi inner printer