showDismissBarrier property

bool showDismissBarrier
final

Whether to render the full-screen tap-to-dismiss barrier behind the open menu. Defaults to true (modal: a tap outside the menu closes it).

Set to false when an external gesture owner (e.g. a canvas gesture arena) must keep receiving pointer events while the menu is open and will handle dismissal itself — the barrier otherwise sits in the root overlay above everything and swallows all input. Pairs with controller-driven open/close.

Implementation

final bool showDismissBarrier;