onTap property

VoidCallback? onTap
final

Called when the button is tapped.

This is distinct from onChanged, which is called when the user selects an item from the dialog.

Implementation

final VoidCallback? onTap;