FetchProgress.complete constructor Null safety
- FetchUrl fetch,
- int length,
- int downloaded,
- {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;
}