selectItem method

void selectItem(
  1. dynamic item
)

select

Implementation

void selectItem(dynamic item) {
  assert(item != null, 'Item should not be null');
  NodeData sItem = item;
  sItem.isSelected = !sItem.isSelected;
  notifyListeners();
}