selectedList method

List<TSelectionEntity> selectedList()

Implementation

List<TSelectionEntity> selectedList() {
  if (TSelectionFilterType.more == filterType) {
    return selectedLastColumnList();
  } else {
    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;
  }
}