startCommunication method

Future<bool> startCommunication()

Starts a communication with the printer. Note: This does not seem to impact whether a print will succeed or not on the Android side. Printing without calling this will still print.

Implementation

Future<bool> startCommunication() async {

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

  final bool result = await _channel.invokeMethod("startCommunication", params);

  print("Print Result: ${result} ");
  return result;
}