onTap property

VoidCallback onTap
final

Called when the item is tapped.

Not used when menuItems is non-null — the tap opens the menu instead.

Implementation

final VoidCallback onTap;