copy method Null safety

  1. @override
XmlText copy()
override

Return a copy of this node and all its children.

Implementation

@override
XmlText copy() => XmlText(text);