SunmiPrinter class
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.
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?> - bindingPrinter
-
bold(
) → Future< void> - bold
-
cut(
) → Future< void> - cut
-
drawerStatus(
) → Future< bool> - drawerStatus
-
drawerTimesOpen(
) → Future< int> - drawerTimesOpen
-
exitLabelPrint(
) → Future< void> - Exit into the label printing mode
-
exitTransactionPrint(
[bool clear = true]) → Future< void> - exitTransactionPrint
-
getPrinterMode(
) → Future< PrinterMode> - getPrinterMode
-
getPrinterStatus(
) → Future< PrinterStatus> - getPrinterStatus
-
getPrinterStatusWithVerbose(
) → Future< String?> - getPrinterStatusWithVerbose
-
initPrinter(
) → Future< bool?> - initPrinter
-
lcdClear(
) → Future< void> - clear LCD
-
lcdDoubleString(
String topText, String bottomText) → Future< void> - Display 2 lines string on LCD
-
lcdFillString(
String text, {int size = 32, bool fill = false}) → Future< void> - Send a single-line text in a customized size. If fill = true, The size parameter be used to set the width of characters. e.g. size:16, fill:false ... Half size char ( Like lcdDoubleString() ) size:32, fill:false ... Full size char ( Like lcdString() ) size:64, fill:true ... Width 64 pixel huge character.
-
lcdImage(
Uint8List img) → Future< void> - Display Bitmap on LCD Image size is 128 x 40 pixels.
-
lcdInitialize(
) → Future< void> - LCD Methods Initialize LCD
-
lcdMultiString(
List< String> texts, List<int> aligns) → Future<void> - Display variable height multiline string. aligns: The weight of the solid content of each line. Like flex.
-
lcdSleep(
) → Future< void> - Sleep LCD
-
lcdString(
String text) → Future< void> - Display string on LCD
-
lcdWakeup(
) → Future< void> - Wakeup LCD
-
line(
{String ch = '-', int len = 31}) → Future< void> - line
-
lineWrap(
int lines) → Future< void> - lineWrap
-
openDrawer(
) → Future< void> - openDrawer
-
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, bool isArabic = false}) → 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
-
setCustomFontSize(
int _size) → Future< void> - setCustomFontSize
-
setFontSize(
SunmiFontSize _size) → Future< void> - setFontSize
-
startLabelPrint(
) → Future< void> - Enter into the label printing mode
-
startTransactionPrint(
[bool clear = false]) → Future< void> - startTransactionPrint
-
submitTransactionPrint(
) → Future< void> - submitTransactionPrint
-
unbindingPrinter(
) → Future< bool?> - unbindingPrinter