BluePrintPos class
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
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 , dynamic 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 , dynamic 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
blue_print_pos_table 0.0.4