W3cubDocs

/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.

Implementation

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.
https://api.dartlang.org/stable/2.0.0/dart-collection/LinkedList/remove.html