cancelDownload method
Cancel the download identified by taskId.
Implementation
@override
Future<void> cancelDownload(String taskId) async {
_ensureInitialized();
_downloadController.add(
DownloadEvent(
taskId: taskId,
url: '',
state: DownloadState.cancelled,
),
);
}