MessageParams.location constructor

MessageParams.location({
  1. required String toJid,
  2. String? replyMessageId,
  3. required LocationMessageParams locationMessageParams,
  4. List<MessageMetaData> metaData = const [],
  5. 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,
  );
}