ChatVoiceMessageBody constructor
创建一条语音消息。
Param localPath 语言消息本地路径。
Param displayName 语音文件名。
Param duration 语音时长,单位是秒。
Param fileSize 语音文件大小,单位是字节。
Implementation
ChatVoiceMessageBody({
required super.localPath,
this.duration = 0,
super.displayName,
super.fileSize,
}) : super(
type: MessageType.VOICE,
);