/Dart 2

remove method

bool remove (E entry)

Remove entry from the linked list.

Returns false and does nothing if entry is not in this linked list.

This is equivalent to calling entry.unlink() if the entry is in this list.


bool remove(E entry) {
  if (entry._list != this) return false;
  _unlink(entry); // Unlink will decrement length.
  return true;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.