cancelDownload static method

void cancelDownload(
  1. String cacheKey
)

Implementation

static void cancelDownload(String cacheKey) {
  if (_operations.containsKey(cacheKey)) {
    _operations[cacheKey]?.cancel();
    _operations.remove(cacheKey);
  }
}