copyWith method

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

Implementation

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