MessageParams.audio constructor
MessageParams.audio({
- required String toJid,
- String? replyMessageId,
- required FileMessageParams fileMessageParams,
- List<
MessageMetaData> metaData = const [], - required bool isRecorded,
- String topicId = "",
Constructs a MessageParams object for a Audio message.
Implementation
factory MessageParams.audio({
required String toJid,
String? replyMessageId,
required FileMessageParams fileMessageParams,
List<MessageMetaData> metaData = const [],
required bool isRecorded,
String topicId = "",
}) {
return MessageParams._(
toJid: toJid,
replyMessageId: replyMessageId,
messageType: isRecorded ? MessageType.audioRecorded : MessageType.audio,
fileMessageParams: fileMessageParams,
metaData: metaData,
topicId: topicId,
);
}