copyWith method
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,
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,
);