CreateMessageUtils class

创建消息工具

Constructors

CreateMessageUtils.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

createCustomMessage(String data) Future<ChatMessageBean>
创建自定义消息 data json消息体
createImageMessage(String imgPath) Future<ChatMessageBean>
创建图片消息 imgPath"本地图片绝对路径", 不能使用网络Url
createSoundMessage(String filePath, int duration) Future<ChatMessageBean>
创建声音的消息体 filePath 本地录音的绝对地址, 不能使用网络Url
createTxtMessage(String message) Future<ChatMessageBean>
创建文本消息体,目前只有C2C使用 message 文本消息