onItemTap method

void onItemTap(
  1. SearchListModel item
)

Implementation

void onItemTap(SearchListModel item) {
  if (multiSelect) {
    item.isSelected(!item.isSelected());
    update(['item']);
  } else {
    Get.back(result: item);
  }
}