copyWith method

ForumTopic copyWith({
  1. ForumTopicInfo? info,
  2. Message? lastMessage,
  3. int? order,
  4. bool? isPinned,
  5. int? unreadCount,
  6. int? lastReadInboxMessageId,
  7. int? lastReadOutboxMessageId,
  8. int? unreadMentionCount,
  9. int? unreadReactionCount,
  10. int? unreadPollVoteCount,
  11. ChatNotificationSettings? notificationSettings,
  12. DraftMessage? draftMessage,
})

Implementation

ForumTopic copyWith({
  ForumTopicInfo? info,
  Message? lastMessage,
  int? order,
  bool? isPinned,
  int? unreadCount,
  int? lastReadInboxMessageId,
  int? lastReadOutboxMessageId,
  int? unreadMentionCount,
  int? unreadReactionCount,
  int? unreadPollVoteCount,
  ChatNotificationSettings? notificationSettings,
  DraftMessage? draftMessage,
}) => ForumTopic(
  info: info ?? this.info,
  lastMessage: lastMessage ?? this.lastMessage,
  order: order ?? this.order,
  isPinned: isPinned ?? this.isPinned,
  unreadCount: unreadCount ?? this.unreadCount,
  lastReadInboxMessageId:
      lastReadInboxMessageId ?? this.lastReadInboxMessageId,
  lastReadOutboxMessageId:
      lastReadOutboxMessageId ?? this.lastReadOutboxMessageId,
  unreadMentionCount: unreadMentionCount ?? this.unreadMentionCount,
  unreadReactionCount: unreadReactionCount ?? this.unreadReactionCount,
  unreadPollVoteCount: unreadPollVoteCount ?? this.unreadPollVoteCount,
  notificationSettings: notificationSettings ?? this.notificationSettings,
  draftMessage: draftMessage ?? this.draftMessage,
);