getPrinterStatus method

Future<PrinterStatus> getPrinterStatus()

Retrieves the printer status.

Implementation

Future<PrinterStatus> getPrinterStatus() async {

  var params = {
    "printerId": mPrinterId,
    "printInfo": mPrinterInfo.toMap(),
  };

  final Map resultMap = await _channel.invokeMethod("getPrinterStatus", params);
  PrinterStatus status = PrinterStatus.fromMap(resultMap);

  return status;
}