FetchProgress.complete constructor

  1. @visibleForTesting
FetchProgress.complete(
  1. FetchUrl fetch,
  2. int length,
  3. int downloaded, {
  4. required FetchProgress? prior,
})

Fetch completed downloading the file

Implementation

@visibleForTesting
FetchProgress.complete(this.fetch, this.length, this.downloaded,
    {required this.prior})
    : progress = 1.0,
      status = FetchStatus.complete,
      headers = null,
      responseCode = null {
  prior?.prior = null;
}