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
AddFileToDownloads copyWith({
int? fileId,
int? chatId,
int? messageId,
int? priority,
}) =>
AddFileToDownloads(
fileId: fileId ?? this.fileId,
chatId: chatId ?? this.chatId,
messageId: messageId ?? this.messageId,
priority: priority ?? this.priority,
);