copyWith method
LocalFile
copyWith(
{ - String? path,
- bool? canBeDownloaded,
- bool? canBeDeleted,
- bool? isDownloadingActive,
- bool? isDownloadingCompleted,
- int? downloadOffset,
- int? downloadedPrefixSize,
- 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,
);