removeUser method

void removeUser(
  1. TUIUserInfo userInfo
)

Implementation

void removeUser(TUIUserInfo userInfo) {
  if (userInfo.userId.isEmpty) {
    return;
  }
  userList.value.removeWhere((element) => element.userId == userInfo.userId);
  final userListValue = LinkedHashSet<UserInfo>();
  userListValue.addAll(userList.value);
  userList.value = userListValue;
}