onTap property

dynamic Function(int) onTap
final

Callback function executed when an item from the bottom navigation bar is selected. Receives the index of the selected item.

Implementation

final Function(int) onTap;