removeUser method

void removeUser(
  1. String userId,
  2. RxList<UserModel> destList
)

Implementation

void removeUser(String userId, RxList<UserModel> destList) {
  destList.removeWhere((element) => element.userId.value == userId);
}