resume method

bool resume(
  1. int tokenDownload
)

Implementation

bool resume(int tokenDownload) {
  SelectDownload selectDow = checkDownload(tokenDownload);
  if (!selectDow.exists) false;
  TokenDownloadStatus status = selectDow.status!;
  SelectTask st = _selectIsolate(status.isolateToken);
  if (!st.exists) false;
  TaskDownload dw = st.task!;
  if (dw.statusIsolate == StatusIsolateType.pause) {
    dw.root.resume(dw.resume);
    dw.statusIsolate = StatusIsolateType.downloading;
    selectDow.status!.status = DownloadType.downloading;
    return true;
  }
  return false;
}