internalCloneWithOwnerDocument method

  1. @visibleForTesting
  2. @override
Node internalCloneWithOwnerDocument(
  1. Document ownerDocument,
  2. bool? deep
)
override

Implementation

@visibleForTesting
@override
Node internalCloneWithOwnerDocument(Document ownerDocument, bool? deep) {
  final clone = DocumentFragment();
  if (deep != false) {
    Node._cloneChildrenFrom(ownerDocument, newParent: clone, oldParent: this);
  }
  return clone;
}