onItemClick method

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

Implementation

void onItemClick(int index, Inbox obj) {
  MyToast.show(obj.name!, context, duration: MyToast.LENGTH_SHORT);
}