isPrinterAvailable method
Implementation
@override
Future<bool> isPrinterAvailable(String ipAddress) async {
try {
return await methodChannel
.invokeMethod("isPrinterAvailable", {"printerId": ipAddress});
} catch (e) {
print("There is an issue while checking printer $e");
return false;
}
}