stopDiscovery method
Stop peer discovery
Implementation
@override
Future<bool> stopDiscovery() async {
try {
final result = await _channel.invokeMethod<bool>('stopDiscovery');
return result ?? false;
} catch (e) {
debugPrint('Error stopping discovery: $e');
return false;
}
}