moveInlineChildren function

void moveInlineChildren(
  1. Root root,
  2. InlineContainerNode source,
  3. InlineContainerNode target
)

Moves all Fragment and Link children from source to target.

Implementation

void moveInlineChildren(Root root, InlineContainerNode source, InlineContainerNode target) {
  for (final child in source.getChildren().toList()) {
    if (child is Fragment || child is Link) {
      removeNode(root, child);
      appendChild(target as FNode, child);
    }
  }
}