copy method Null safety

  1. @override
XmlComment copy()
override

Return a copy of this node and all its children.

Implementation

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