allSelectedList method

List<TSelectionEntity> allSelectedList()

Implementation

List<TSelectionEntity> allSelectedList() {
  List<TSelectionEntity> results = [];
  List<TSelectionEntity> firstColumn =
      SelectionUtil.currentSelectListForEntity(this);
  results.addAll(firstColumn);
  if (firstColumn.isNotEmpty) {
    for (TSelectionEntity firstEntity in firstColumn) {
      List<TSelectionEntity> secondColumn =
          SelectionUtil.currentSelectListForEntity(firstEntity);
      results.addAll(secondColumn);
      if (secondColumn.isNotEmpty) {
        for (TSelectionEntity secondEntity in secondColumn) {
          List<TSelectionEntity> thirdColumn =
              SelectionUtil.currentSelectListForEntity(secondEntity);
          results.addAll(thirdColumn);
        }
      }
    }
  }
  return results;
}