onItemClick method

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

Implementation

void onItemClick(int index, People obj) {
  showDialog(context: context, builder: (context) => CustomEventDialog(obj));
}