onTap property

dynamic Function(int) onTap
final

Callback function executed when a component's tab is touched. It receives the index of the selected tab as a parameter.

Implementation

final Function(int) onTap;