getBytesFromReceipt static method
Future<List<Uint8List> >
getBytesFromReceipt(
- KasseneckReceipt receipt,
- KeckPaperSize paperSize, {
- QrPrintMode qrMode = QrPrintMode.imageRaster,
Implementation
static Future<List<Uint8List>> getBytesFromReceipt(KasseneckReceipt receipt, KeckPaperSize paperSize, {QrPrintMode qrMode = QrPrintMode.imageRaster}) async {
PrintPaper paper = PrintPaper(paperSize: paperSize, profile: KeckPrinterService.profile??await CapabilityProfile.load());
await paper.setKeckReceipt(receipt, qrMode: qrMode);
return paper.bytes;
}