EMVoiceMessageBody constructor

EMVoiceMessageBody(
  1. {dynamic localPath,
  2. int duration = 0,
  3. String? displayName,
  4. int? fileSize}
)

创建一条语音消息。

Param localPath 语言消息本地路径。

Param displayName 语音文件名。

Param duration 语音时长,单位是秒。

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

Implementation

EMVoiceMessageBody({
  localPath,
  this.duration = 0,
  String? displayName,
  int? fileSize,
}) : super(
        localPath: localPath,
        displayName: displayName,
        fileSize: fileSize,
        type: MessageType.VOICE,
      );