replace method
void
replace(
- T item
Updates the value of item
.
This only works when the ids of the new and old value are identical.
Implementation
void replace(T item) {
_items[_getIndex(item)] = item;
}