cancel method

Future<void> cancel(
  1. DownloadTask task
)

Marks the given task as cancelled.

Implementation

Future<void> cancel(DownloadTask task) async {
  taskStatus[task.id] = DownloadStatus.CANCELLED;
}