removeTemplate method

Future<PrinterStatus> removeTemplate(
  1. List<int> keyList
)

Removes templates from the printer.

Implementation

Future<PrinterStatus> removeTemplate(List<int> keyList) async {

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

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

  return status;
}