setMessageTextWithMentions method

void setMessageTextWithMentions({
  1. List<V2TimGroupMemberFullInfo>? groupMembersToMention,
  2. String? messageText,
  3. String? user,
  4. String? group,
  5. String? topicID,
})

Sets the text message in the message input area, replacing the current editing content, with an optional list of V2TimGroupMemberFullInfo objects representing the group members to be mentioned. If no group members are provided, the method will simply set the message text.

Implementation

void setMessageTextWithMentions({
  List<V2TimGroupMemberFullInfo>? groupMembersToMention,
  String? messageText,
  String? user,
  String? group,
  String? topicID,
}) {
  groupMembersFullInfo = groupMembersToMention;
  _triggerEvent(
    event: EventName.setMessageTextWithMentions,
    value: messageText,
    user: user,
    group: group,
    topic: topicID,
  );
}