addFirst method

void addFirst(
  1. E entry
)

Adds entry to the beginning of the linked list.

Implementation

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