insertBefore method

  1. @override
void insertBefore(
  1. NodeV0 entry
)
override

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

@override
void insertBefore(NodeV0 entry) {
  entry.parent = parent;
  super.insertBefore(entry);

  // Notifies the new node.
  parent?.notifyListeners();
}