getNetPrinterInfo method

Future<NetPrinter> getNetPrinterInfo(
  1. String ipAddress
)

Implementation

Future<NetPrinter> getNetPrinterInfo(String ipAddress) async {
  var params = {
    "printerId": mPrinterId,
    "printInfo": mPrinterInfo.toMap(),
    "ipAddress" : ipAddress,
  };

  final Map resultMap = await _channel.invokeMethod("getNetPrinterInfo", params);

  final NetPrinter outPrinter = NetPrinter.fromMap(resultMap);
  return outPrinter;
}