printRawWin32 function
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)),
);