set_popover


Description:

[ Version ( since = "3.12" ) ]
public void set_popover (Widget? popover)

Sets the Popover that will be popped up when the this is clicked, or null to dissociate any existing popover and disable the button.

If menu_model or popup are set, those objects are dissociated from the this, and those properties are set to null.

Parameters:

this

a MenuButton

popover

a Popover, or null to unset and disable the button