printAllFunctions method

  1. @override
Future<PrinterStatus> printAllFunctions(
  1. Uint8List imageBytes,
  2. int width,
  3. int height,
  4. bool finishPrinting,
)
override

Implementation

@override
Future<PrinterStatus> printAllFunctions(
    Uint8List imageBytes, int width, int height, bool finishPrinting) async {
  await methodChannel.invokeMethod<String>(PrinterCommands.print.label, {
    "printerMode": PrinterModes.allFunctions.label,
    "imageBytes": imageBytes,
    "width": width,
    "height": height
  });
  return finishPrinting ? await endPrinting() : await checkPrinter();
}