FetchProgress.downloading constructor Null safety
- FetchUrl fetch,
- int length,
- int downloaded,
- {required FetchProgress? prior}
Fetch is downloading. You will get multiples of this event.
Implementation
@visibleForTesting
FetchProgress.downloading(this.fetch, this.length, this.downloaded,
{required this.prior})
: status = FetchStatus.downloading,
progress = length != 0 ? downloaded / length : 0,
headers = null,
responseCode = null {
prior?.prior = null;
}