addMention method

void addMention(
  1. String userId,
  2. String displayName
)

Adds a mention to the current draft state.

Implementation

void addMention(String userId, String displayName) {
  _mentions = [
    ..._mentions,
    MessageInputMention(userId: userId, displayName: displayName),
  ];
  notifyListeners();
}