copyWith method

GetForumTopicLink copyWith({
  1. int? chatId,
  2. int? messageThreadId,
})

Copy model with modified properties.

Properties:

  • chat_id: Identifier of the chat
  • message_thread_id: Message thread identifier of the forum topic

Implementation

GetForumTopicLink copyWith({
  int? chatId,
  int? messageThreadId,
}) =>
    GetForumTopicLink(
      chatId: chatId ?? this.chatId,
      messageThreadId: messageThreadId ?? this.messageThreadId,
    );