PullDownMenuItemTapHandler typedef
PullDownMenuItemTapHandler =
void Function(BuildContext context, VoidCallback onTap)
Signature used by PullDownMenuItem to resolve how onTap
callback is
used.
Default behaviour is to pop the menu and than call the onTap
.
Used by PullDownMenuItem.tapHandler.
See also:
- PullDownMenuItem.defaultTapHandler, a default tap handler.
- PullDownMenuItem.noPopTapHandler, a tap handler that immediately calls
onTap
without popping the menu.
Implementation
typedef PullDownMenuItemTapHandler = void Function(
BuildContext context,
VoidCallback onTap,
);