connectToPrinter method
Implementation
@override
Future<bool> connectToPrinter(String ipAddress,
{int portNumber = 9100}) async {
try {
return await methodChannel.invokeMethod("connectToPrinterWithIP",
{"printerId": ipAddress, "portNumber": portNumber});
} catch (e) {
print("There is an issue while connecting to the printer $e");
return false;
}
}