onSelect property

void Function(T?, int)? onSelect
final

Callback function when an item is selected. It provides the selected item and its index.

Implementation

final void Function(T?, int)? onSelect;