copyWith method
DownloadValue
copyWith(
{ - String? downloadStatus,
- int? quanlity,
- int? duration,
- int? size,
- int? downloadSize,
- double? progress,
- String? playPath,
- bool? isStop,
- String? url,
- String? fileId,
- String? error,
})
Implementation
DownloadValue copyWith({
String? downloadStatus,
int? quanlity,
int? duration,
int? size,
int? downloadSize,
double? progress,
String? playPath,
bool? isStop,
String? url,
String? fileId,
String? error,
}) {
return DownloadValue(
downloadStatus: downloadStatus ?? this.downloadStatus,
quanlity: quanlity ?? this.quanlity,
duration: duration ?? this.duration,
size: size ?? this.size,
downloadSize: downloadSize ?? this.downloadSize,
progress: progress ?? this.progress,
playPath: playPath ?? this.playPath,
isStop: isStop ?? this.isStop,
url: url ?? this.url,
fileId: fileId ?? this.fileId,
error: error ?? this.error,
);
}