F001ReceiptPrinting class

Constructors

F001ReceiptPrinting.new({required Generator generator, BluetoothDevice? selectedDevice})

Properties

bluetoothDevices List<BluetoothDevice>
getter/setter pair
connectedToPrinter bool
getter/setter pair
flutterBlue → FlutterBlueClassic
final
generator → Generator
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedDevice ↔ BluetoothDevice?
getter/setter pair

Methods

connectToDevice({required BluetoothDevice device}) Future<ReceiptPrinterResponse>
Connect to a Bluetooth classic device
disconnectFromDevice() Future<void>
Disconnect from the current connected device
getPlatformVersion() Future<String?>
Returns Plugin Version.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printReceipt({required Widget widgetToBeCaptured, required BuildContext context}) Future<ReceiptPrinterResponse>
Prints a receipt based on the provided Widget data.
scanForDevices(dynamic onDeviceFound(BluetoothDevice)) Future<void>
Refreshes paired Bluetooth devices list.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getWidgetWidthFromPaperSize({required PrinterPaperSize paperSize}) double
Get recommended widget width based on the provided PrinterPaperSize value.
initialisePrinter({required PrinterPaperSize paperSize}) Future<F001ReceiptPrinting>
Initialises Receipt Printing Manager with the provided PrinterPaperSize value.