removeItem method
void
removeItem(
- dynamic data
Implementation
void removeItem(dynamic data){
int? indexToRemove;
int index = 0;
for(dynamic item in items){
if(item == data){
indexToRemove = index;
break;
}
index++;
}
if(indexToRemove != null) {
removeItemAt(indexToRemove);
}
}