onItemClick method

void onItemClick(
  1. String name
)

Implementation

void onItemClick(String name) {
  MyToast.show(name + " clicked", context, duration: MyToast.LENGTH_SHORT);
}