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