EMFileMessageBody constructor

EMFileMessageBody({
  1. required String localPath,
  2. String? displayName,
  3. int? fileSize,
  4. MessageType type = MessageType.FILE,
})

~english Creates a message with an attachment.

Param localPath The path of the image file.

Param displayName The file name.

Param fileSize The size of the file in bytes.

Param type The file type. ~end

~chinese 创建一条带文件附件的消息。

Param localPath 图片文件路径。

Param displayName 文件显示名称。

Param fileSize 文件大小,单位是字节。

Param type 文件类型。 ~end

Implementation

EMFileMessageBody({
  required this.localPath,
  this.displayName,
  this.fileSize,
  MessageType type = MessageType.FILE,
}) : super(type: type);