remove method

bool remove(
  1. Object item
)
override

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(Object item) {
  var hasRemoved = _set.remove(item);
  if (hasRemoved) {
    refresh();
  }
  return hasRemoved;
}