clone method Null safety

  1. @override
Element clone(
  1. bool deep

Returns a copy of this node.

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


Element clone(bool deep) {
  final result = Element._(localName, namespaceUri)
    ..attributes = LinkedHashMap.from(attributes);
  return _clone(result, deep);