cancelAll method

void cancelAll()

Cancels all active downloads.

Implementation

void cancelAll() {
  for (final sub in List.of(_active)) {
    unawaited(sub.cancel());
  }
  _active.clear();
}