ThreadMessagesViewController class

Mixed-in types

Constructors

ThreadMessagesViewController({MessageModel? model, dynamic willSendHandler(dynamic)?, int pageSize = 10})

Properties

cursor String?
getter/setter pair
fetching bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
hasPermission bool
getter/setter pair
isMultiSelectMode bool
getter/setter pair
loadFinished bool
getter/setter pair
model MessageModel?
getter/setter pair
msgModelList List<MessageModel>
getter/setter pair
pageSize int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedMessages List
getter/setter pair
thread ↔ dynamic
getter/setter pair
userMap Map<String, ChatUIKitProfile>
final
willSendHandler → dynamic Function(dynamic)?
final

Methods

addCreateMessage(dynamic message) → void
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
changeThreadName(String newName) Future<void>
createThreadIfNotExits({String? threadName}) Future<bool>
destroyChatThread() Future<void>
disableMultiSelectMode() → void
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
downloadMessage(dynamic message) Future<void>
editMessage(dynamic message, String content) Future<void>
enableMultiSelectMode() → void
fetchItemList() Future<void>
insertCreateMessage() Future<void>
joinThreadIfCan() → void
leaveChatThread() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onChatThreadCreate(dynamic event) → void
inherited
onChatThreadDestroy(dynamic event) → void
inherited
onChatThreadUpdate(dynamic event) → void
override
onCmdMessagesReceived(List messages) → void
inherited
onConversationRead(String from, String to) → void
inherited
onConversationsUpdate() → void
inherited
onGroupMessageRead(List groupMessageAcks) → void
inherited
onMessageContentChanged(dynamic message, String operatorId, int operationTime) → void
override
onMessagePinChanged(String messageId, String conversationId, dynamic pinOperation, dynamic pinInfo) → void
inherited
onMessageReactionDidChange(List events) → void
override
onMessagesDelivered(List messages) → void
inherited
onMessageSendError(String msgId, dynamic msg, dynamic error) → void
override
onMessageSendProgress(String msgId, int progress) → void
inherited
onMessageSendSuccess(String msgId, dynamic msg) → void
override
onMessagesRead(List messages) → void
inherited
onMessagesRecalled(List recalled) → void
inherited
onMessagesRecalledInfo(List infos, List replaces) → void
inherited
onMessagesReceived(List messages) → void
override
onMessageUpdate(dynamic newMessage, [dynamic oldMessage]) → void
inherited
onMessageWillSend(dynamic msg) → void
inherited
onReadAckForGroupMessageUpdated() → void
inherited
onTyping(List<String> fromUsers) → void
inherited
onUserKickOutOfChatThread(dynamic event) → void
inherited
refresh() → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
reportMessage({required dynamic message, required String tag, required String reason}) Future<void>
resendMessage(dynamic message) Future<void>
sendCardMessage(ChatUIKitProfile cardProfile) Future<void>
sendFileMessage(String path, {String? name, int? fileSize}) Future<void>
sendImageMessage(String path, {String? name}) Future<void>
sendMessage(dynamic message) Future<void>
sendTextMessage(String text, {dynamic replay}) Future<void>
sendVideoMessage(String path, {String? name, double? width, double? height, int? duration}) Future<void>
sendVoiceMessage(String path, int duration, String? displayName) Future<void>
title(String? title) String?
toString() String
A string representation of this object.
inherited
translateMessage(dynamic message, {bool showTranslate = true}) Future<void>
updatePermission() → void
updateReaction(String messageId, String reaction, bool isAdd) Future<void>

Operators

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