XprinterSdkPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • XprinterSdkPlatform
Implementers

Constructors

XprinterSdkPlatform.new()
Constructs a XprinterSdkPlatform.

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

addBarcodeText() Future<void>
connectDevice(String mac) Future<bool>
disconnectDevice() Future<void>
drawBarcode(int x, int y, XprinterBarCodeType type, int height, String data, {bool vertical = false, int? width, XprinterBarcodeRatio? ratio}) Future<void>
drawBox(int x, int y, int width, int height, int thickness) Future<void>
drawImage(int x, int y, Uint8List image) Future<void>
drawInverseLine(int x, int y, int xend, int yend, int width) Future<void>
drawLine(int x, int y, int xend, int yend, int thickness) Future<void>
drawQRCode(int x, int y, String data, {XprinterQRCodeModel? codeModel, int? cellWidth}) Future<void>
drawText(int x, int y, String text, {XprintFont? font, XprintRotation? rotation}) Future<void>
initializePrinter({int height = 0, int offset = 0, int count = 1}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
print() Future<void>
removeBarcodeText() Future<void>
setAlignment(XprinterAlignment align, [int end = -1]) Future<void>
setBeepLength(int length) Future<void>
setMag(int width, int height) Future<void>
setPageWidth(int width) Future<void>
setSpeedLevel(int level) Future<void>
setStringEncoding(XprinterChatset chatset) Future<void>
startScanBluetooth() Future<void>
stopScanBluetooth() Future<void>
toString() String
A string representation of this object.
inherited
writeCommand(Uint8List data) Future<void>

Operators

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

Static Properties

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