onTap property
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;
Callback function executed when an item from the bottom navigation bar is selected. Receives the index of the selected item.
final Function(int) onTap;