FetchProgress.error constructor

  1. @visibleForTesting
FetchProgress.error(
  1. FetchUrl fetch, {
  2. required FetchProgress? prior,
})

An error occured whilst downloading the file.

Implementation

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