MethodChannelPrinter class
An implementation of PrinterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- SunmiExtPrinterPlatform
- MethodChannelPrinter
Constructors
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
-
connectPrinter(
) → Future< void> -
override
-
cutPaper(
PaperCutMode m, int n) → Future< void> -
override
-
disconnectPrinter(
) → Future< void> -
override
-
enableBold(
bool enable) → Future< void> -
override
-
enableUnderline(
bool enable) → Future< void> -
override
-
findBleDevice(
) → Future< List?> -
override
-
flush(
) → Future< void> -
override
-
getPrinterStatus(
) → Future< int?> -
override
-
isConnected(
) → Future< bool> -
override
-
lineWrap(
int n) → Future< void> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pixelWrap(
int n) → Future< void> -
override
-
printBarCode(
String code, BarCodeType type, int width, int height, int hriPos) → Future< void> -
override
-
printBitmap(
Uint8List bitmap, PrintBitmapMode mode) → Future< void> -
override
-
printBitmap2(
Uint8List bitmap, int mode) → Future< void> -
override
-
printColumnsText(
List< String> colsTextArr, List<int> colsWidthArr, List<int> colsAlign) → Future<void> -
override
-
printerInit(
) → Future< void> -
override
-
printQrCode(
String code, int modeSize, int errorlevel) → Future< void> -
override
-
printText(
String text) → Future< void> -
override
-
sendRawData(
Uint8List cmd) → Future< void> -
override
-
setAlignMode(
int type) → Future< void> -
override
-
setFontZoom(
int hori, int veri) → Future< void> -
override
-
setGb18030CharSet(
bool enable) → Future< void> -
override
-
setHorizontalTab(
List< int> k) → Future<void> -
override
-
setInterCharSet(
int n) → Future< void> -
override
-
setLineSpace(
int value) → Future< void> -
override
-
setPageTable(
int n) → Future< void> -
override
-
setPrinter(
int printer, [String? address]) → Future< void> -
override
-
tab(
) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited