SunmiPrinter class Null safety
SunmiPrinter
This class is a core of our printer system. With this class you can print everything you like. If you want to print a text, qrcode, barcode, bold text, bigger text or the smallest text possible. Your imagination is the limit!
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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?> - bindingPrinter [...]
-
bold(
) → Future< void> - bold [...]
-
cut(
) → Future< void> - cut [...]
-
exitTransactionPrint(
[bool clear = true]) → Future< void> - exitTransactionPrint [...]
-
getPrinterMode(
) → Future< PrinterMode> - getPrinterMode [...]
-
getPrinterStatus(
) → Future< PrinterStatus> - getPrinterStatus [...]
-
getPrinterStatusWithVerbose(
) → Future< String?> - getPrinterStatusWithVerbose [...]
-
initPrinter(
) → Future< bool?> - initPrinter [...]
-
line(
{String ch = '-', int len = 31}) → Future< void> - line [...]
-
lineWrap(
int lines) → Future< void> - lineWrap [...]
-
paperSize(
) → Future< int> - paperSize [...]
-
printBarCode(
String data, {SunmiBarcodeType barcodeType = SunmiBarcodeType.CODE128, int height = 162, int width = 2, SunmiBarcodeTextPos textPosition = SunmiBarcodeTextPos.TEXT_ABOVE}) → Future< void> - printBarCode [...]
-
printerVersion(
) → Future< String> - printerVersion [...]
-
printImage(
Uint8List img) → Future< void> - printImage [...]
-
printQRCode(
String data, {int size = 5, SunmiQrcodeLevel errorLevel = SunmiQrcodeLevel.LEVEL_H}) → Future< void> - printQRCode [...]
-
printRawData(
Uint8List data) → Future< void> - printRawData [...]
-
printRow(
{required List< ColumnMaker> cols}) → Future<void> - printRow [...]
-
printText(
String text, {SunmiStyle? style}) → Future< void> - printText [...]
-
resetBold(
) → Future< void> - resetBold [...]
-
resetFontSize(
) → Future< void> - resetFontSize [...]
-
serialNumber(
) → Future< String> - serialNumber [...]
-
setAlignment(
SunmiPrintAlign alignment) → Future< void> - setAlignment [...]
-
setFontSize(
SunmiFontSize _size) → Future< void> - setFontSize [...]
-
startTransactionPrint(
[bool clear = false]) → Future< void> - startTransactionPrint [...]
-
submitTransactionPrint(
) → Future< void> - submitTransactionPrint [...]
-
unbindingPrinter(
) → Future< bool?> - unbindingPrinter [...]