deleteMenu

fun deleteMenu(contract: MessageMenuDialogContract?, icon: Painter? = null, onClick: () -> Unit = { contract?.onClickDeleteMenu() }): DialogMenuDetail

Returns the default "delete" menu for the message menu dialog.

Return

The DialogMenuDetail for the delete menu.

Since

1.0.0

Parameters

contract

The contract to handle the menu click actions.

icon

The icon to show for the menu. Defaults to null.

onClick

The action to be executed when the menu is clicked. Defaults to MessageMenuDialogContract.onClickDeleteMenu.