finish method
- 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.
}