onOpen property

VoidCallback? onOpen

Returns a callback, if any, to be invoked if the platform menu receives a "Menu.opened" method call from the platform for this item.

Only items that have submenus will have this callback invoked.

The default implementation returns null.

Implementation

VoidCallback? get onOpen => null;