removeUser method

void removeUser({
  1. required int uid,
})

Implementation

void removeUser({required int uid}) {
  List<AgoraUser> tempList = <AgoraUser>[];
  tempList = value.users;
  for (int i = 0; i < tempList.length; i++) {
    if (tempList[i].uid == uid) {
      tempList.remove(tempList[i]);
    }
  }
  value = value.copyWith(users: tempList);
}