fetchProxiesLegacy method

  1. @Deprecated('Use fetchProxies with ProxyFilterOptions instead')
Future<List<Proxy>> fetchProxiesLegacy({
  1. int count = 20,
  2. bool onlyHttps = false,
  3. List<String>? countries,
})

Fetches proxies from various sources with legacy parameters

This is kept for backward compatibility

count is the number of proxies to fetch onlyHttps filters to only return HTTPS proxies countries filters to only return proxies from specific countries

Implementation

@Deprecated('Use fetchProxies with ProxyFilterOptions instead')
Future<List<Proxy>> fetchProxiesLegacy({
  int count = 20,
  bool onlyHttps = false,
  List<String>? countries,
}) async {
  return fetchProxies(
    options: ProxyFilterOptions(
      count: count,
      onlyHttps: onlyHttps,
      countries: countries,
    ),
  );
}