printRawWin32 function

Future<bool> printRawWin32(
  1. String printerName,
  2. List<int> data
)

Prints on a background isolate, since the spooler calls block until the job is queued. Returns whether the spooler accepted every byte.

Implementation

Future<bool> printRawWin32(String printerName, List<int> data) => Isolate.run(
  () => using((alloc) => RawPrinter(printerName, alloc).printEscPosWin32(data)),
);