callLegacy method

  1. @Deprecated('Use call with ProxyFilterOptions instead')
Future<List<Proxy>> callLegacy({
  1. int count = 10,
  2. bool onlyHttps = false,
  3. List<String>? countries,
  4. void onProgress(
    1. int completed,
    2. int total
    )?,
})

Executes the use case to get 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

@Deprecated('Use call with ProxyFilterOptions instead')
Future<List<Proxy>> callLegacy({
  int count = 10,
  bool onlyHttps = false,
  List<String>? countries,
  void Function(int completed, int total)? onProgress,
}) {
  return repository.getValidatedProxiesLegacy(
    count: count,
    onlyHttps: onlyHttps,
    countries: countries,
    onProgress: onProgress,
  );
}