XmlElement constructor

const XmlElement({
  1. required String name,
  2. List<XmlAttribute>? attributes,
  3. 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);