copy method

Return a copy of this node and all its children.

Implementation

@override
XmlDeclaration copy() => XmlDeclarationSyntheticImpl(
      attributes.map((each) => each.copy()),
    );