call method

Future<List<Proxy>> call({
  1. ProxyFilterOptions options = const ProxyFilterOptions(count: 10),
  2. void onProgress(
    1. int completed,
    2. int total
    )?,
})

Executes the use case to get validated proxies with advanced filtering options

options contains all the filtering options onProgress is a callback for progress updates during validation

Implementation

Future<List<Proxy>> call({
  ProxyFilterOptions options = const ProxyFilterOptions(count: 10),
  void Function(int completed, int total)? onProgress,
}) {
  return repository.getValidatedProxies(
    options: options,
    onProgress: onProgress,
  );
}