printLayoutBluetooth static method

Future printLayoutBluetooth(
  1. ReceiptLayout layout, {
  2. bool brandMark = false,
})

Fertiges Layout auf dem verbundenen Bluetooth-Drucker (gleicher Sende-Pfad wie printReceiptBluetooth).

Implementation

static Future printLayoutBluetooth(ReceiptLayout layout, {bool brandMark = false}) async {
  final PrintPaper paper = await getPaperFromLayout(layout, _breiteVon(layout), brandMark: brandMark);
  return _sendToBluetoothPrinter(<int>[for (final p in paper.bytes) ...p]);
}