addFirst method

void addFirst (E entry)

Add entry to the beginning of the linked list.

Implementation

void addFirst(E entry) {
  _insertBefore(_first, entry, updateFirst: true);
  _first = entry;
}