remove method

void remove()

Implementation

void remove() {
  prev.next = next;

  if (next != null) {
    next.prev = prev;
  }

  prev = null;
  next = null;
}