copy method

  1. @override
XmlDocument copy()
override

Return a copy of this node and all its children.

Implementation

@override
XmlDocument copy() => XmlDocument(children.map((each) => each.copy()));