copy method

TreeLayoutNode copy(
  1. TreeLayoutNode build(
    1. TreeLayoutNode?,
    2. TreeLayoutNode
    ), [
  2. int deep = 0
])
inherited

从复制当前节点及其后代 复制后的节点没有parent

Implementation

T copy(T Function(T?, T) build, [int deep = 0]) {
  return _innerCopy(build, null, deep);
}