siblingElements property Null safety

Iterable<XmlNode> siblingElements

Returns an Iterable over the XmlElement siblings of this node. If the node has no parent or no siblings, return an empty collection.

Implementation

Iterable<XmlNode> get siblingElements => siblings.whereType<XmlElement>();