getBytesFromReceipt static method

Future<List<Uint8List>> getBytesFromReceipt(
  1. KasseneckReceipt receipt,
  2. KeckPaperSize paperSize, {
  3. 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 ?? CapabilityProfile());
  await paper.setKeckReceipt(receipt, qrMode: qrMode);
  return paper.bytes;
}