copyWith method
SendMessageAlbum
copyWith({
- int? chatId,
- MessageTopic? topicId()?,
- InputMessageReplyTo? replyTo()?,
- MessageSendOptions? options()?,
- List<
InputMessageContent> ? inputMessageContents,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
SendMessageAlbum copyWith({
int? chatId,
MessageTopic? Function()? topicId,
InputMessageReplyTo? Function()? replyTo,
MessageSendOptions? Function()? options,
List<InputMessageContent>? inputMessageContents,
}) => SendMessageAlbum(
chatId: chatId ?? this.chatId,
topicId: topicId != null ? topicId() : this.topicId,
replyTo: replyTo != null ? replyTo() : this.replyTo,
options: options != null ? options() : this.options,
inputMessageContents: inputMessageContents ?? this.inputMessageContents,
);