EMMessage.createFileSendMessage constructor
创建文件类型消息 filePath
: 文件路径; userName
: 接收方id
Implementation
EMMessage.createFileSendMessage(String filePath, String userName)
: this(
direction: Direction.SEND,
type: EMMessageType.FILE,
body: EMNormalFileMessageBody(File(filePath)),
to: userName);