clone method

  1. @JSName('cloneNode')
Node clone (
  1. bool? deep
)
@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

Implementation

@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 Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-html/Node/clone.html