ChatVoiceMessageBody constructor
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.
Implementation
ChatVoiceMessageBody({
localPath,
this.duration = 0,
String? displayName,
int? fileSize,
}) : super(
localPath: localPath,
displayName: displayName,
fileSize: fileSize,
type: MessageType.VOICE,
);