PopupMenuState

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

showPopup

Whether the popup menu should be shown

lastPress

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())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard