siblings property

  1. @override
Iterable<XmlNode> get siblings
inherited

Returns an Iterable over the siblings of this node. If the node has no parent or no siblings, return a collection with just this node.

Implementation

@override
Iterable<XmlNode> get siblings => parent == null ? [this] : parent!.children;