children property
Implementation
List<Template> get children {
if (_children == null) {
_children = [];
if (node is xml.XmlElement) {
for (var child in node.children) {
if (child is xml.XmlElement) {
_children!.add(Template(child, this));
} else if (child is xml.XmlText) {
if (child.text.trim().isNotEmpty)
_children!.add(Template(child, this));
}
}
}
}
return _children!;
}