updateUserRole method
Implementation
void updateUserRole(String userId, TUIRole role, RxList<UserModel> destList) {
var index = getUserIndex(userId, destList);
if (index == -1) {
return;
}
destList[index].userRole.value = role;
}
void updateUserRole(String userId, TUIRole role, RxList<UserModel> destList) {
var index = getUserIndex(userId, destList);
if (index == -1) {
return;
}
destList[index].userRole.value = role;
}