List<Parent> get externalParents { var externalList = <Parent>[]; for (Parent parent in parents.whereType<Parent>()) { if (parent.external) { externalList.add(parent); } } return externalList; }