firstChild property

XmlElement? firstChild

Returns the first XmlElement found in children.

Returns null if one isn't found.

Implementation

XmlElement? get firstChild {
  if (children == null) return null;
  for (var child in children!) {
    if (child is XmlElement) return child;
  }
  return null;
}