insertBefore method

Node insertBefore(
  1. Node node,
  2. Node? child
)

Inserts the given node into this node directly before child. If child is null, then the given node is inserted at the end of this node's child nodes.

Other resources

Implementation

Node insertBefore(Node node, Node? child) native;