SunmiPrinterPlusPlatform class abstract

Abstract platform interface for interacting with the Sunmi Printer Plus.

This class defines the methods for Sunmi Printer Plus functionality. Concrete implementations should override these methods for their specific platforms (e.g., Android, iOS).

Inheritance
  • Object
  • PlatformInterface
  • SunmiPrinterPlusPlatform
Implementers

Constructors

SunmiPrinterPlusPlatform()
Constructs a SunmiPrinterPlusPlatform.

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

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

Operators

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

Static Properties

instance SunmiPrinterPlusPlatform
The default instance of SunmiPrinterPlusPlatform to use.
getter/setter pair