reparent method

  1. @override
TagflowNode reparent([
  1. TagflowNode? newParent
])
override

Reparent the node

Implementation

@override
TagflowNode reparent([TagflowNode? newParent]) {
  return TagflowTableElement(
    tag: tag,
    rowCount: rowCount,
    columnCount: columnCount,
    rows: rows.map((e) => e.reparent(this)).toList(),
    spans: spans,
    caption: caption?.reparent(this),
    parent: newParent,
    attributes: attributes,
  );
}