FetchProgress.response constructor

  1. @visibleForTesting
FetchProgress.response(
  1. FetchUrl fetch,
  2. int? responseCode, {
  3. required FetchProgress? prior,
})

Fetch has recieved the HTTP response code

Implementation

@visibleForTesting

/// Fetch has recieved the HTTP response code
FetchProgress.response(this.fetch, this.responseCode, {required this.prior})
    : status = FetchStatus.response,
      progress = 0,
      length = 0,
      downloaded = 0,
      headers = null {
  prior?.prior = null;
}