removeFromDownloadQueue static method

void removeFromDownloadQueue({
  1. required DownloadMessageQueueData data,
})

Implementation

static void removeFromDownloadQueue({
  required DownloadMessageQueueData data,
}) {
  if (downloadQueue.containsKey(data.convID)) {
    if (downloadQueue[data.convID] != null) {
      downloadQueue[data.convID]!.removeWhere((ele) => ele.getUniqueueKey() == data.getUniqueueKey());
      console("remove ${data.getUniqueueKey()} from download queue success");
    }
  } else {
    console("the ${data.getUniqueueKey()} is not add to download. pealse check");
  }
}