getAllChildrenTitles method

List<int> getAllChildrenTitles()

Implementation

List<int> getAllChildrenTitles() {
  List<int> id = [];
  for (var child in children) {
    id.add(child.id);
    id.addAll(child.getAllChildrenTitles());
  }
  return id;
}