RecentChat class

A class that represents a recent chat.

Constructors

RecentChat({String? contactType, bool? isAdminBlocked, bool? isBlocked, bool? isBlockedMe, bool? isBroadCast, bool? isChatArchived, bool? isPrivateChat, bool? isChatPinned, bool? isConversationUnRead, bool? isGroup, bool? isGroupInOfflineMode, bool? isItSavedContact, bool? isLastMessageRecalledByUser, bool? isLastMessageSentByMe, bool? isMuted, bool? isSelected, String? jid, String? lastMessageContent, String? lastMessageId, String? lastMessageStatus, dynamic lastMessageTime, String? lastMessageType, String? nickName, String? profileImage, String? profileName, dynamic unreadMessageCount, String? topicId, List<MessageMetaData>? metaData})
Constructs a RecentChat object with the provided parameters.
RecentChat.fromJson(Map<String, dynamic> json)
Creates a RecentChat object from a JSON map.
factory

Properties

contactType String?
The type of contact.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isAdminBlocked bool?
Whether the user is blocked by the admin.
getter/setter pair
isBlocked bool?
Whether the user is blocked.
getter/setter pair
isBlockedMe bool?
Whether the user has blocked the current user.
getter/setter pair
isBroadCast bool?
Whether the chat is a broadcast.
getter/setter pair
isChatArchived bool?
Whether the chat is archived.
getter/setter pair
isChatPinned bool?
Whether the chat is pinned.
getter/setter pair
isConversationUnRead bool?
Whether the conversation is unread.
getter/setter pair
isGroup bool?
Whether the chat is a group.
getter/setter pair
isGroupInOfflineMode bool?
Whether the group is in offline mode.
getter/setter pair
isItSavedContact bool?
Whether the contact is saved.
getter/setter pair
isLastMessageRecalledByUser bool?
Whether the last message was recalled by the user.
getter/setter pair
isLastMessageSentByMe bool?
Whether the last message was sent by the user.
getter/setter pair
isMuted bool?
Whether the chat is muted.
getter/setter pair
isPrivateChat bool?
Whether the chat is private.
getter/setter pair
isSelected bool?
Whether the chat is selected.
getter/setter pair
jid String?
The JID of the contact.
getter/setter pair
lastMessageContent String?
The content of the last message.
getter/setter pair
lastMessageId String?
The ID of the last message.
getter/setter pair
lastMessageStatus String?
The status of the last message.
getter/setter pair
lastMessageTime ↔ dynamic
The time of the last message.
getter/setter pair
lastMessageType String?
The type of the last message.
getter/setter pair
metaData List<MessageMetaData>?
The metadata of the message.
getter/setter pair
nickName String?
The nickname of the contact.
getter/setter pair
profileImage String?
The profile image of the contact.
getter/setter pair
profileName String?
The profile name of the contact.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topicId String?
The topic ID.
getter/setter pair
unreadMessageCount ↔ dynamic
The number of unread messages.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the RecentChat object to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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