cancelAllPreloads method

int cancelAllPreloads()

Cancels all preloading operations.

Returns the number of operations that were cancelled.

Implementation

int cancelAllPreloads() {
  var count = 0;

  for (final key in _operations.keys) {
    if (cancelPreload(key)) {
      count++;
    }
  }

  return count;
}