dismisses

Create a Flow of dismiss events on the PopupMenu instance.

Note: Created flow keeps a strong reference to the PopupMenu instance until the coroutine that launched the flow collector is cancelled.

Example of usage:

popupMenu.dismisses()
.onEach {
// handle popup menu dismiss event
}
.launchIn(uiScope)