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