onTap property

void Function(int)? onTap
final

Callback function when a button is tapped.

Implementation

final void Function(int)? onTap;