createElement method Null safety

  1. @override
XmlElement createElement(
  1. XmlName name,
  2. Iterable<XmlNode> attributes,
  3. Iterable<XmlNode> children,
  4. [bool isSelfClosing = true]
)
override

Implementation

@override
XmlElement createElement(XmlName name, Iterable<XmlNode> attributes,
        Iterable<XmlNode> children, [bool isSelfClosing = true]) =>
    XmlElement(
        name, attributes.cast<XmlAttribute>(), children, isSelfClosing);