remove method
- T item
Removes an item from the list.
This is O(N) in the number of items in the list.
Returns whether the item was present in the list.
Implementation
bool remove(T item) {
final bool removed = _list.remove(item);
if (removed) {
_isDirty = true;
_set.clear(); // Clear the set so that we don't leak items.
}
return removed;
}