nodes property Null safety

Iterable<XmlNode> nodes

Return a lazy Iterable of the direct descendants of this XmlNode (attributes, children) in document order.

Implementation

Iterable<XmlNode> get nodes => [attributes, children].flatten();