append method

  1. @DomName('Node.appendChild')
  2. @DocsEditable()
Node append(Node node)

Adds a node to the end of the child nodes list of this node.

If the node already exists in this document, it will be removed from its current parent node, then added to this node.

This method is more efficient than nodes.add, and is the preferred way of appending a child node.

Source

@DomName('Node.appendChild')
@DocsEditable()
Node append(Node node) =>
    _blink.BlinkNode.instance.appendChild_Callback_1_(this, node);

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