EMConversationExtension extension Null safety

on

Properties

ext Map<String, String>?
read-only

Methods

appendMessage(EMMessage message) Future<void>
Inserts a message to the end of a conversation in the local database. [...]
deleteAllMessages() Future<void>
Deletes all the messages of the conversation from both the memory and local database. [...]
deleteMessage(String messageId) Future<void>
Deletes a message in the local database. [...]
insertMessage(EMMessage message) Future<void>
Inserts a message to a conversation in the local database and the SDK will automatically update the lastest message. [...]
lastReceivedMessage() Future<EMMessage?>
Gets the latest message from the conversation. [...]
latestMessage() Future<EMMessage?>
Gets the lastest message from the conversation. [...]
loadMessage(String messageId) Future<EMMessage?>
Gets the message with a specific message ID. [...]
loadMessages({String startMsgId = '', int loadCount = 20, EMSearchDirection direction = EMSearchDirection.Up}) Future<List<EMMessage>?>
Loads multiple messages from the local database. [...]
loadMessagesFromTime({required int startTime, required int endTime, int count = 20}) Future<List<EMMessage>>
Loads messages from the local database according the following parameters: start timestamp, end timestamp, count. [...]
loadMessagesWithKeyword(String keywords, {String? sender, int timestamp = -1, int count = 20, EMSearchDirection direction = EMSearchDirection.Up}) Future<List<EMMessage>>
Loads messages from the local database by the following parameters: keywords, timestamp, max count, sender, search direction. [...]
loadMessagesWithMsgType({required MessageType type, int timestamp = -1, int count = 20, String? sender, EMSearchDirection direction = EMSearchDirection.Up}) Future<List<EMMessage>?>
Retrieves messages from the database according to the following parameters: the message type, the Unix timestamp, max count, sender. [...]
markAllMessagesAsRead() Future<void>
Marks all messages as read.
markMessageAsRead(String messageId) Future<void>
Marks a message as read. [...]
setExt(Map<String, String>? ext) Future<void>
unreadCount() Future<int>
Gets the unread message count of the conversation. [...]
updateMessage(EMMessage message) Future<void>
Updates a message in the local database. [...]