continueDownload method
continue task
Implementation
Future<void> continueDownload() async {
//ignore: lines_longer_than_80_chars
final task =
await EasyDownloader._localeStorage.getDownloadTask(downloadId);
assert(task != null, 'EasyDownloader: task must not be null');
//ignore: lines_longer_than_80_chars
assert(
task!.status == DownloadStatus.paused,
'EasyDownloader: task status must be paused',
);
await EasyDownloader._downloadManager.continueTask(task!);
}