copyWith method
Implementation
DownloadProgress copyWith({
int? downloaded,
int? total,
double? progress,
DownloadStatus? status,
String? error,
String? filePath,
}) {
return DownloadProgress(
downloaded: downloaded ?? this.downloaded,
total: total ?? this.total,
progress: progress ?? this.progress,
status: status ?? this.status,
error: error ?? this.error,
filePath: filePath ?? this.filePath,
);
}