PrinterReceipts class
Receipt printing functions for Bixolon printers.
This class provides methods for formatting and printing receipts with various layouts and content types.
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
printComplexReceipt(
{required List< ReceiptContent> contents, int printerWidth = 576, double padding = 10, bool cutPaperAfter = true, bool optimizeAsciiText = true}) → Future<bool> - Print a complex receipt with mixed content types.
-
printMultipleColumn(
{required List< PrintColumn> columns, int canvasWidth = 832, double lineHeight = 1.5, Alignment alignment = Alignment.center, double padding = 10}) → Future<bool> - Print multiple columns of text.
-
printReceipt(
{required List< Map< items, String? header, String fontFamily = 'Siemreap', double fontSize = 20, FontWeight fontWeight = FontWeight.normal, int? printerWidth, double lineSpacing = 5.0, Map<String, dynamic> >String, double> ? columnWidths}) → Future<bool> - Print receipt with multiple rows of data.
-
printStandardReceipt(
{required String headerText, required String businessInfo, required List< Map< items, required String subtotal, required String tax, required String total, required String paymentInfo, String? logoPath, String? barcodeData}) → Future<String, dynamic> >bool> - Print a standard receipt template with common sections.