copyWith method
DownloadProgress
copyWith({
- DownloadState? state,
- double? progress,
- String? filePath,
- String? error,
Implementation
DownloadProgress copyWith({
DownloadState? state,
double? progress,
String? filePath,
String? error,
}) {
return DownloadProgress(
state: state ?? this.state,
progress: progress ?? this.progress,
filePath: filePath ?? this.filePath,
error: error ?? this.error,
);
}