clearSelectedEntity method

void clearSelectedEntity()

递归清空选中状态

Implementation

void clearSelectedEntity() {
  List<SelectionEntity> tmp = [];
  SelectionEntity node = this;
  tmp.add(node);
  while (tmp.isNotEmpty) {
    node = tmp.removeLast();
    node.isSelected = false;
    node.children.forEach((data) {
      tmp.add(data);
    });
  }
}