currentShowTagByExpanded method

List<SelectionEntity> currentShowTagByExpanded(
  1. bool isExpanded
)

根据是否展开,返回对应数量的子节点

Implementation

List<SelectionEntity> currentShowTagByExpanded(bool isExpanded) {
  List<SelectionEntity> all = currentTagListForEntity();
  return isExpanded ? all : all.sublist(0, currentDefaultTagCountForEntity());
}