ForumTopic class

Inheritance

Constructors

ForumTopic({required ForumTopicInfo info, Message? lastMessage, required bool isPinned, required int unreadCount, required int lastReadInboxMessageId, required int lastReadOutboxMessageId, required int unreadMentionCount, required int unreadReactionCount, required ChatNotificationSettings notificationSettings, DraftMessage? draftMessage, dynamic extra, int? clientId})
Describes a forum topic
const
ForumTopic.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

clientId int?
clientId client identifier
final
draftMessage DraftMessage?
draftMessage A draft of a message in the topic; may be null if none
final
extra → dynamic
extra callback sign
final
hashCode int
The hash code for this object.
no setterinherited
info ForumTopicInfo
info Basic information about the topic
final
isPinned bool
isPinned True, if the topic is pinned in the topic list
final
lastMessage Message?
lastMessage Last message in the topic; may be null if unknown
final
lastReadInboxMessageId int
lastReadInboxMessageId Identifier of the last read incoming message
final
lastReadOutboxMessageId int
lastReadOutboxMessageId Identifier of the last read outgoing message
final
notificationSettings ChatNotificationSettings
notificationSettings Notification settings for the topic
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unreadCount int
unreadCount Number of unread messages in the topic
final
unreadMentionCount int
unreadMentionCount Number of unread messages with a mention/reply in the topic
final
unreadReactionCount int
unreadReactionCount Number of messages with unread reactions in the topic
final

Methods

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
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String