clearChildSelection method
void
clearChildSelection()
清空子节点的选中状态
Implementation
void clearChildSelection() {
if (children.isNotEmpty) {
for (SelectionEntity entity in children) {
entity.isSelected = false;
if (entity.filterType == SelectionFilterType.date) {
entity.value = null;
}
if (entity.filterType == SelectionFilterType.range ||
entity.filterType == SelectionFilterType.dateRange ||
entity.filterType == SelectionFilterType.dateRangeCalendar) {
entity.customMap = Map();
}
entity.clearChildSelection();
}
}
}