removeMentionedUserById method

void removeMentionedUserById(
  1. String userId
)

Removes the mentioned user with the given userId.

Implementation

void removeMentionedUserById(String userId) {
  mentionedUsers = [...mentionedUsers]..removeWhere((it) => it.id == userId);
}