finish method

void finish(
  1. DownloadProgressSession session
)

Implementation

void finish(DownloadProgressSession session) {
  if (!identical(_active, session)) return;
  session.markFinished();
  _active = null;
  _activeKey = null;
  _lastFinished = session;
  revision.value++;
  // Keep the finished notifier alive until the next download replaces it.
}