selectAllChild method

void selectAllChild(
  1. dynamic item
)

Implementation

void selectAllChild(dynamic item) {
  assert(item != null, 'Item should not be null');
  NodeData sItem = item;
  sItem.isSelected = !sItem.isSelected;
  if (sItem.children.length > 0) {
    _selectAllChild(sItem);
  }
  notifyListeners();
}