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