copyWith method
UpdateMessageEdited
copyWith({
- int? chatId,
- int? messageId,
- int? editDate,
- ReplyMarkup? replyMarkup()?,
- 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
UpdateMessageEdited copyWith({
int? chatId,
int? messageId,
int? editDate,
ReplyMarkup? Function()? replyMarkup,
dynamic extra,
int? clientId,
}) =>
UpdateMessageEdited(
chatId: chatId ?? this.chatId,
messageId: messageId ?? this.messageId,
editDate: editDate ?? this.editDate,
replyMarkup: replyMarkup != null ? replyMarkup() : this.replyMarkup,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);