copyWith method
UpdateFileDownload
copyWith({
- int? fileId,
- int? completeDate,
- bool? isPaused,
- DownloadedFileCounts? counts,
- dynamic extra,
- int? clientId,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
UpdateFileDownload copyWith({
int? fileId,
int? completeDate,
bool? isPaused,
DownloadedFileCounts? counts,
dynamic extra,
int? clientId,
}) =>
UpdateFileDownload(
fileId: fileId ?? this.fileId,
completeDate: completeDate ?? this.completeDate,
isPaused: isPaused ?? this.isPaused,
counts: counts ?? this.counts,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);