isPrinterAvailable method

  1. @override
Future<bool> isPrinterAvailable(
  1. String ipAddress
)
override

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;
  }
}