copyWith method

DownloadValue copyWith({
  1. String? downloadStatus,
  2. int? quanlity,
  3. int? duration,
  4. int? size,
  5. int? downloadSize,
  6. double? progress,
  7. String? playPath,
  8. bool? isStop,
  9. String? url,
  10. String? fileId,
  11. 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,
  );
}