enableLongPressToOpen property

bool enableLongPressToOpen
final

Whether or not the menu should open in response to a long-press on the anchor.

When a menu is opened via long-press, the menu can be swiped in the same gesture to select and activate menu items.

Because long-press-to-open relies on the swipe gesture, enableSwipe must be true if enableLongPressToOpen is true.

If the widget built by builder is disabled, enableLongPressToOpen should be set to false to prevent the menu from opening on long-press.

Defaults to false, which disables the behavior.

Implementation

final bool enableLongPressToOpen;