snapshot property

DownloadProgress get snapshot

The current state as a DownloadProgress.

Implementation

DownloadProgress get snapshot => DownloadProgress(
  state: state,
  bytesTransferred: _written,
  totalBytes: _total,
);