noPopTapHandler static method

void noPopTapHandler(
  1. BuildContext _,
  2. VoidCallback? onTap
)

An additional, pre-made tap handler for PullDownMenuItem.

The behaviour is to call the onTap without popping the menu.

Implementation

static void noPopTapHandler(BuildContext _, VoidCallback? onTap) =>
    onTap?.call();