Метод clone
- @JSName('cloneNode')
- bool? deep
@JSName('cloneNode')
Возвращает копию этого узла.
Если deep равно true, то все дочерние узлы и потомки этого узла также копируются. Если deep равно false, то копируется только сам этот узел.
Другие ресурсы
- Node.cloneNode с MDN.
Реализация
@JSName('cloneNode')
/**
* 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
*
* * [Node.cloneNode](https://developer.mozilla.org/en-US/docs/Web/API/Node.cloneNode)
* from MDN.
*/
Node clone(bool? deep) native;
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-html/Node/clone.html