stopDiscovery method

Future<bool> stopDiscovery()

Stops the printer discovery process

Implementation

Future<bool> stopDiscovery() async {
  try {
    final result = await _channel.invokeMethod('stopDiscovery');
    return result as bool? ?? false;
  } on PlatformException catch (e) {
    throw Exception("Stop Discovery Error (${e.code}): ${e.message}");
  }
}