lastChild property
XmlElement?
lastChild
Returns the last XmlElement found in children.
Returns null
if one isn't found.
Implementation
XmlElement? get lastChild {
if (children == null) return null;
for (var child in children!.reversed) {
if (child is XmlElement) return child;
}
return null;
}