allText property

List<String> get allText

Implementation

List<String> get allText {
  if (this == null) return [];
  final lst = <String>[];
  if (this!.characters != null && this!.characters!.isNotEmpty) {
    lst.add(this!.characters!);
  }
  if (this!.children != null) {
    for (final item in this!.children!) {
      lst.addAll(item.allText);
    }
  }
  return lst;
}