fetchValidatedProxiesLegacy method
- @Deprecated('Use fetchValidatedProxies with ProxyFilterOptions instead')
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
@Deprecated('Use fetchValidatedProxies with ProxyFilterOptions instead')
Future<List<Proxy>> fetchValidatedProxiesLegacy({
int count = 10,
bool onlyHttps = false,
List<String>? countries,
void Function(int completed, int total)? onProgress,
}) async {
return fetchValidatedProxies(
options: ProxyFilterOptions(
count: count,
onlyHttps: onlyHttps,
countries: countries,
),
onProgress: onProgress,
);
}