clearSelectedEntity method

void clearSelectedEntity()

Implementation

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