removeItemByID method
Implementation
void removeItemByID(Type classType, String id){
int? indexToRemove;
int index = 0;
for(dynamic item in items){
if(item.runtimeType == classType){
NUIListItem listItem = repo().getItemByClass(classType);
if(listItem.dataId != null && match(id, listItem.dataId!(item))){
indexToRemove = index;
break;
}
}
index++;
}
if(indexToRemove != null) {
removeItemAt(indexToRemove);
}
}