isDownloading static method

bool isDownloading({
  1. required DownloadMessageQueueData data,
})

Implementation

static bool isDownloading({
  required DownloadMessageQueueData data,
}) {
  bool res = false;
  if (currentDownloadingList.indexWhere((ele) => ele.getUniqueueKey() == data.getUniqueueKey()) > -1) {
    res = true;
  }
  return res;
}