Popup Menu State
data class PopupMenuState(val showPopup: Boolean = false, lastPress: Offset = Offset.Zero, val items: List<PopupMenuItem> = emptyList())
The state of the popup menu. Controls if, where and what items are shown in the popup menu. The bottom border of the Popup will be centered on the offset (as far as this is possible with keeping it within the bounds of the parent container).
Parameters
show Popup
Whether the popup menu should be shown
last Press
The offset of the last press that triggered the popup menu
items
The items to show in the popup menu
Constructors
Link copied to clipboard
constructor(showPopup: Boolean = false, lastPress: Offset = Offset.Zero, items: List<PopupMenuItem> = emptyList())