copyWith method

LocalFile copyWith({
  1. String? path,
  2. bool? canBeDownloaded,
  3. bool? canBeDeleted,
  4. bool? isDownloadingActive,
  5. bool? isDownloadingCompleted,
  6. int? downloadOffset,
  7. int? downloadedPrefixSize,
  8. int? downloadedSize,
})

Implementation

LocalFile copyWith({
  String? path,
  bool? canBeDownloaded,
  bool? canBeDeleted,
  bool? isDownloadingActive,
  bool? isDownloadingCompleted,
  int? downloadOffset,
  int? downloadedPrefixSize,
  int? downloadedSize,
}) => LocalFile(
  path: path ?? this.path,
  canBeDownloaded: canBeDownloaded ?? this.canBeDownloaded,
  canBeDeleted: canBeDeleted ?? this.canBeDeleted,
  isDownloadingActive: isDownloadingActive ?? this.isDownloadingActive,
  isDownloadingCompleted: isDownloadingCompleted ?? this.isDownloadingCompleted,
  downloadOffset: downloadOffset ?? this.downloadOffset,
  downloadedPrefixSize: downloadedPrefixSize ?? this.downloadedPrefixSize,
  downloadedSize: downloadedSize ?? this.downloadedSize,
);