FetchProgress.response constructor Null safety
- FetchUrl fetch,
- int? responseCode,
- {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;
}