fetchValidatedProxiesLegacy method

  1. @override
Future<List<Proxy>> fetchValidatedProxiesLegacy({
  1. int count = 10,
  2. bool onlyHttps = false,
  3. List<String>? countries,
  4. void onProgress(
    1. int completed,
    2. int total
    )?,
})
override

Gets a list of validated proxies with legacy parameters

This is kept for backward compatibility

count is the number of proxies to return onlyHttps filters to only return HTTPS proxies countries filters to only return proxies from specific countries onProgress is a callback for progress updates during validation

Implementation

@override
Future<List<Proxy>> fetchValidatedProxiesLegacy({
  int count = 10,
  bool onlyHttps = false,
  List<String>? countries,
  void Function(int completed, int total)? onProgress,
}) async {
  return _advancedProxyManager.getValidatedProxies(
    options: ProxyFilterOptions(
      count: count,
      onlyHttps: onlyHttps,
      countries: countries,
    ),
    onProgress: onProgress,
  );
}