remove method

  1. @override
bool remove(
  1. Object element
)
override

Removes the first occurrence of value from this list.

Returns true if value was in the list, false otherwise.

The method has no effect if value was not in the list.

Implementation

@override
bool remove(element) {
  assert(!isDisposed);
  var index = _list.indexOf(element);
  if (index > -1) removeAt(index);
  return index > -1;
}