scrim property

bool scrim
final

Whether the open menu dims the screen behind it: the scrim role at the scrim's opacity (ScrimTokens), fading on the toggle's spring, with a tap on it closing the menu. Compose's menu draws none; an app adds one (Keep's M3 Expressive menu does) where the items would otherwise sit on busy, tinted content. Needs overlayItems: the toggle then rides the overlay too, above the scrim, while the menu's own box keeps the closed toggle's size.

Implementation

final bool scrim;