insertBefore method

void insertBefore(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.

Source

void insertBefore(E entry) {
  _list._insertBefore(this as dynamic/*=E*/, entry, updateFirst: true);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-collection/LinkedListEntry/insertBefore.html