ChatMessageHelper class

Constructors

ChatMessageHelper.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getMessageBrief(NIMMessage message) String
getMultiLineMessageMap({String? title, String? content}) Map<String, dynamic>?
getReplayMessageText(BuildContext context, NIMMessageRefer messageRefer, String conversationId) Future<String>
getReplayMessageTextById(BuildContext context, String messageId, String conversationId) Future<String>
getSenderParams(NIMMessage message, String conversationId, {NIMMessagePushConfig? pushConfig}) Future<NIMSendMessageParams>
imageSpan(String? tag) WidgetSpan?
处理文本消息中的表情
showForwardMessageDialog(BuildContext context, ForwardMessageFunction forwardMessage, {List<String>? filterUser, required String sessionName, ForwardType type = ForwardType.normal}) → void
显示转发选择框
textSpan(BuildContext context, String text, int start, {int? end, ChatUIConfig? chatUIConfig, Map<String, dynamic>? remoteExtension}) List<TextSpan>
解析Text消息,将@消息和普通文本分开