ChatFileMessageBody constructor
ChatFileMessageBody({})
创建一条带文件附件的消息。
Param localPath
图片文件路径。
Param displayName
文件显示名称。
Param fileSize
文件大小,单位是字节。
Param type
文件类型。
Implementation
ChatFileMessageBody({
required this.localPath,
this.displayName,
this.fileSize,
MessageType type = MessageType.FILE,
}) : super(type: type);