onTap property

(dynamic Function(int)?) onTap
final

Callback function executed when a tab is selected. It receives the index of the current tab as a parameter.

Implementation

final Function(int)? onTap;