isUrlDownloading method

bool isUrlDownloading(
  1. String url
)

Checks if a task with the given URL is currently downloading.

Implementation

bool isUrlDownloading(String url) {
  return activeTasks.where((task) => task.uri.toString() == url).isNotEmpty;
}