XmlHasXml mixin Null safety

Mixin for nodes with XML contents.

Implements
Mixin Applications

Properties

outerXml String
Return the markup representing this node and all its child nodes.
read / write
innerXml String
Return the markup representing the child nodes of this node.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
children List<XmlNode>
Return the direct children of this node in document order.
read-only, inherited
childElements Iterable<XmlElement>
Return an Iterable over the XmlElement children of this node.
read-only, inherited
firstChild XmlNode?
Return the first child of this node, or null if there are no children.
read-only, inherited
firstElementChild XmlElement?
Return the first child XmlElement, or null if there are none.
read-only, inherited
lastChild XmlNode?
Return the last child of this node, or null if there are no children.
read-only, inherited
lastElementChild XmlElement?
Return the last child XmlElement, or null if there are none.
read-only, inherited
parent XmlNode?
Return the parent node of this node, or null if there is none.
read-only, inherited
hasParent bool
Test whether the node has a parent or not.
read-only, inherited

Methods

toString() String
A string representation of this object. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
getElement(String name, {String? namespace}) XmlElement?
Return the first child element with the given name, or null.
inherited
replace(XmlNode other) → void
Replace this node with other.
inherited
attachParent(covariant XmlNode parent) → void
Internal helper to attach a child to this parent, do not call directly.
@internal, inherited
detachParent(covariant XmlNode parent) → void
Internal helper to detach a child from its parent, do not call directly.
@internal, inherited
toXmlString({bool pretty = false, XmlEntityMapping? entityMapping, int? level, String? indent, String? newLine, Predicate<XmlNode>? preserveWhitespace, Predicate<XmlAttribute>? indentAttribute, Comparator<XmlAttribute>? sortAttributes}) String
Return an XML string of this object. [...]
inherited
accept(XmlVisitor visitor) → dynamic
Dispatch the invocation depending on this type to the visitor.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited