MenuController class Null safety

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.
read-onlyinherited
isOpen bool
Whether or not the associated menu is currently open.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

close() → void
Close the menu that this menu controller is associated with.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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