overlayBehavior property
By default, the value used is OverlayBehavior.opaque
OverlayBehavior.deferToOverlay
blocks the onTap on the widget and will trigger the onTap only on the overlay
OverlayBehavior.deferToChild
triggers only the onTap on the widget
Implementation
final HitTestBehavior overlayBehavior;