printReceiptMypos static method

Future<PrintResponse> printReceiptMypos(
  1. KasseneckReceipt receipt
)

Implementation

static Future<PrintResponse> printReceiptMypos(KasseneckReceipt receipt) async {
  MyPosPaper paper = await getMyPosPaperFromReceipt(receipt);
  if (kDebugMode) print('Printing receipt with MyPos: ${paper.commands.length} lines');
  return await MyPos.printPaper(paper);
}