removeUserAtInfo method

void removeUserAtInfo(
  1. String info
)

Implementation

void removeUserAtInfo(String info) {
  final index = _mentions.indexWhere((mention) => mention.userId == info);
  if (index >= 0) _mentions.removeAt(index);
  notifyListeners();
}