MethodChannelSunmiPrinterPlus class

An implementation of SunmiPrinterPlusPlatform that uses method channels.

Inheritance

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addText(Map printData) → Future<String?>
Add custom text with styling.
override
configLCD({required SunmiLCDStatus status}) → Future<String?>
Configure the LCD status.
override
cutPaper() → Future<String?>
Cut the paper.
override
getId() → Future<String?>
Fetch the printer's ID.
override
getPaper() → Future<String?>
Fetch the paper status.
override
getPlatformVersion() → Future<String?>
Fetch the platform version.
override
getStatus() → Future<String?>
Fetch the printer's status.
override
getType() → Future<String?>
Fetch the printer type.
override
getVersion() → Future<String?>
Fetch the printer's version.
override
isDrawerOpen() → Future<bool>
Check if the drawer is open.
override
line(String? type) → Future<String?>
Print a line with an optional type (e.g., dashed, solid).
override
lineWrap(int times) → Future<String?>
Add line breaks.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openDrawer() → Future<String?>
Open the drawer.
override
printBarcode(Map printData) → Future<String?>
Print a barcode with custom settings.
override
printEscPos(List<int> data) → Future<String?>
Print ESC/POS commands.
override
printImage(Uint8List image, SunmiPrintAlign align) → Future<String?>
Print an image with specified alignment.
override
printQrcode(Map printData) → Future<String?>
Print a QR code with custom settings.
override
printRow({required List text, required List width, required List style}) → Future<String?>
Print a row of text with specified columns, widths, and styles.
override
printText(Map printData) → Future<String?>
Print text with custom settings.
override
printTSPL(String data) → Future<String?>
Print a TSPL (TSC printer language) command.
override
rebindPrinter() → Future<bool>
Rebinds the printer service (useful if the service was killed or lost).
override
sendImageLCD({required Uint8List image}) → Future<String?>
Send an image to the LCD screen.
override
sendTextLCD({required String text, required int size, required bool fill}) → Future<String?>
Send text to the LCD screen with specified size and fill option.
override
showDigital(String digital) → Future<String?>
Show a digital value on the LCD screen.
override
toString() → String
A string representation of this object.
inherited

Operators

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