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