onTap property

VoidCallback? onTap
final

Called when the popup button is tapped.

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

The callback will not be invoked if the popup button is disabled.

Implementation

final VoidCallback? onTap;