BluePrintPos class

Properties

hashCode int
The hash code for this object.
no setterinherited
isConnected bool
Getter value _isConnected
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedDevice BlueDevice?
Selected device after connecting
getter/setter pair

Methods

connect(BlueDevice device, {Duration timeout = const Duration(seconds: 5)}) Future<ConnectionStatus>
When connecting, reassign value selectedDevice from parameter device and if connection time more than timeout will return ConnectionStatus.timeout When connection success, will return ConnectionStatus.connected
customPrintProcess(Uint8List byteBuffer) Future<void>
disconnect({Duration timeout = const Duration(seconds: 5)}) Future<ConnectionStatus>
To stop communication between bluetooth device and application
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printQR(String data, {int size = 120, int feedCount = 0, bool useCut = false}) Future<void>
This method only for print QR, only pass value on parameter data define size to size of QR, default value is 120 feedCount to create more space after printing process done useCut to cut printing process
printReceiptImage(List<int> bytes, {int width = 120, int feedCount = 0, bool useCut = false, bool useRaster = false, PaperSize paperSize = PaperSize.mm58}) Future<void>
This method only for print image with parameter bytes in List
printReceiptText(ReceiptSectionText receiptSectionText, {int feedCount = 0, bool useCut = false, bool useRaster = false, double duration = 0, PaperSize paperSize = PaperSize.mm58}) Future<void>
This method only for print text value and styling inside model ReceiptSectionText. feedCount to create more space after printing process done useCut to cut printing process
scan() Future<List<BlueDevice>>
return bluetooth device list, handler Android and iOS in BlueScanner
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance BluePrintPos
no setter

Static Methods

contentToImage({required String content, double duration = 0}) Future<Uint8List>