EMVoiceMessageBody constructor

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

~english Creates a voice message.

Param localPath The local path of the voice file.

Param displayName The name of the voice file.

Param fileSize The size of the voice file in bytes.

Param duration The voice duration in seconds. ~end

~chinese 创建一条语音消息。

Param localPath 语言消息本地路径。

Param displayName 语音文件名。

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

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

Implementation

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