appendChild function

bool appendChild(
  1. FNode parent,
  2. FNode newNode
)

Appends newNode as the last child of parent.

Implementation

bool appendChild(FNode parent, FNode newNode) {
  final children = _mutableChildrenOf(parent);
  if (children == null) return false;
  children.add(newNode);
  return true;
}