firstChild property Null safety

XmlNode? firstChild

Return the first child of this node, or null if there are no children.

Implementation

@override
XmlNode? get firstChild => children.isEmpty ? null : children.first;