remove method

  1. @override
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

@override
bool remove(Object item) {
  final hasRemoved = _list.remove(item);
  if (hasRemoved) {
    refresh();
  }
  return hasRemoved;
}