disconnectToPrinter method

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

Implementation

@override
Future<bool> disconnectToPrinter(String ipAddress) async {
  try {
    return await methodChannel
        .invokeMethod("disconnect", {"printerId": ipAddress});
  } catch (e) {
    print("There is an issue while disconnecting to the printer $e");
    return false;
  }
}