checkDownload method
Implementation
SelectDownload checkDownload(int tokenDownload) {
if (_downloadsTask.containsKey(tokenDownload)) {
return SelectDownload(
exists: true,
status: _downloadsTask[tokenDownload]!,
);
} else {
return SelectDownload(exists: false);
}
}