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:

Constructors

Properties

hashCode int
The hash code for this object.
no setterinherited
isOpen bool
Whether or not the associated menu is currently open.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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