clone method

Node clone([bool deep ])

Returns a copy of this node.

If deep is true, then all of this node's children and descendents are copied as well. If deep is false, then only this node is copied.

Other resources

Source

Node clone([bool deep]) {
  if (deep != null) {
    return _blink.BlinkShadowRoot.instance.cloneNode_Callback_1_(this, deep);
  }
  return _blink.BlinkShadowRoot.instance.cloneNode_Callback_0_(this);
}

© 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/ShadowRoot/clone.html