copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
DownloadFile copyWith({
int? fileId,
int? priority,
int? offset,
int? limit,
bool? synchronous,
}) =>
DownloadFile(
fileId: fileId ?? this.fileId,
priority: priority ?? this.priority,
offset: offset ?? this.offset,
limit: limit ?? this.limit,
synchronous: synchronous ?? this.synchronous,
);