LokotroPdfService class
Enhanced PDF service for generating payment receipts with Lokotro branding
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
-
generateAndOpenPdf(
{required LokotroPayOnResponse paymentResponse, String? merchantName, String? merchantAddress, String? customerName, String? customerEmail, Map< String, dynamic> ? additionalInfo, String? fileName}) → Future<bool> - Generate and save PDF with automatic opening
-
generatePaymentReceipt(
{required LokotroPayOnResponse paymentResponse, String? merchantName, String? merchantAddress, String? customerName, String? customerEmail, Map< String, dynamic> ? additionalInfo}) → Future<Uint8List> - Generate payment receipt PDF for download (A4 format)
-
generatePrintReceipt(
{required LokotroPayOnResponse paymentResponse, String? merchantName, String? merchantAddress, String? customerName, String? customerEmail, Map< String, dynamic> ? additionalInfo}) → Future<Uint8List> - Generate receipt optimized for printing based on saved printer settings
-
isPrintingAvailable(
) → Future< bool> - Check if printing is available on the device
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printPdf(
Uint8List pdfBytes, {String? jobName}) → Future< bool> - Print PDF using system print dialog
-
printReceipt(
{required LokotroPayOnResponse paymentResponse, String? merchantName, String? merchantAddress, String? customerName, String? customerEmail, Map< String, dynamic> ? additionalInfo, String? jobName}) → Future<bool> - Print receipt optimized for configured printer
-
savePdfAndOpen(
Uint8List pdfBytes, {String? fileName}) → Future< bool> - Save PDF and automatically open it with default PDF reader
-
savePdfToDevice(
Uint8List pdfBytes, String fileName) → Future< String> - Save PDF to device storage
-
savePdfToDeviceAndOpen(
Uint8List pdfBytes, {String? fileName}) → Future< String?> - Save PDF to device storage with automatic opening
- Share PDF using system share dialog
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → LokotroPdfService
-
Get singleton instance
no setter