MenuController class
A controller to manage a menu created by a MenuBar or MenuAnchor.
A MenuController is used to control and interrogate a menu after it has been created, with methods such as open and close, and state accessors like isOpen.
See also:
- MenuAnchor, a widget that defines a region that has submenu.
- MenuBar, a widget that creates a menu bar, that can take an optional MenuController.
- SubmenuButton, a widget that has a button that manages a submenu.
Constructors
Properties
Methods
-
close(
) → void - Close the menu that this menu controller is associated with.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
{Offset? position}) → void - Opens the menu that this menu controller is associated with.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited