insertBefore method

void insertBefore(
  1. E entry
)

Insert an element before this element in this element's linked list.

This entry must be in a linked list when this method is called. The entry must not be in a linked list.

Implementation

void insertBefore(E entry) {
  _list!._insertBefore(this as E, entry, updateFirst: true);
}