lastChild property Null safety

XmlNode? lastChild

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

Implementation

@override
XmlNode? get lastChild => children.isEmpty ? null : children.last;