findTaskById method
Finds a task in the pool by its taskId
.
Implementation
DownloadTask? findTaskById(String taskId) =>
_taskList.where((task) => task.id == taskId).firstOrNull;
Finds a task in the pool by its taskId
.
DownloadTask? findTaskById(String taskId) =>
_taskList.where((task) => task.id == taskId).firstOrNull;