XmlElement constructor
const
XmlElement({
- required String name,
- List<
XmlAttribute> ? attributes, - List<
XmlNode> ? children,
A XML element.
name
must not be empty and must be > 0
in length.
attributes
must not be null
but may be empty.
If the text value is supplied, children
must be null
.
Implementation
const XmlElement({
required this.name,
this.attributes,
List<XmlNode>? children,
}) : assert(name.length > 0),
super(children: children);