text property
String
get
text
The concatenated text content of this element's descendants.
Implementation
String get text {
final out = StringBuffer();
void walk(XmlLiteElement e) {
for (final c in e.children) {
switch (c) {
case XmlLiteText(:final value):
out.write(value);
case XmlLiteElement():
walk(c);
default:
}
}
}
walk(this);
return out.toString();
}