helper/chat_message_helper library

Properties

phoneRegex RegExp
电话号码正则表达式
final
urlRegex RegExp
URL链接正则表达式
final

Functions

buildHistoryMessage(BuildContext context, NIMMessage message, {NIMTeam? teamInfo, String? keyword}) Widget
构建消息内容 无边框,无方向 内容不可点击
getFormatTime(int timestamp, BuildContext context) String
showForwardMessageDialog(BuildContext context, NIMMessage message) → void
转发消息

Typedefs

ForwardMessageFunction = dynamic Function(String conversationId, {bool isLastUser, String? postScript})
定义转发方法 isLastUser 是否是最后一个用户,用于转发给多个用户的case,主要用于合并转发和逐条转发 postScript 转发附言 conversationId 会话id