onItemClick method

void onItemClick(
  1. int index,
  2. PhotoInfo obj
)

Implementation

void onItemClick(int index, PhotoInfo obj) {
  selectedItems.add(obj);
  rebuildSelected();
  selectedLength.value = selectedItems.length;
}