printFileList method

Future<PrinterStatus> printFileList(
  1. List<String> fileList
)

Print the image files using print settings set by setPrinterInfo.

Implementation

Future<PrinterStatus> printFileList(List<String> fileList) async {
  var params = {
    "printerId": mPrinterId,
    "printInfo": mPrinterInfo.toMap(),
    "filePathList" : fileList
  };

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

  return status;

}