findAllDirectElementsOrNull function
Implementation
List<XmlElement>? findAllDirectElementsOrNull(
XmlElement element,
String name, {
String? namespace,
}) {
try {
return element.findElements(name, namespace: namespace).toList();
} on StateError {
return null;
}
}