onTap property

void Function(int selectedIndex)? onTap
final

Click event notification pipe exposing the zero-based list tracking index of the interacted element.

Implementation

final void Function(int selectedIndex)? onTap;