descendants property

List<WidgetRef> get descendants

Implementation

List<WidgetRef> get descendants {
  final descendants = <WidgetRef>[];
  for (final child in children) {
    descendants.add(child);
    descendants.addAll(child.descendants);
  }
  for (final slotChildren in slots.values) {
    for (final child in slotChildren) {
      descendants.add(child);
      descendants.addAll(child.descendants);
    }
  }
  return descendants;
}