onSelectedIntent property Null safety
Returns an intent, if any, to be invoked if the platform receives a "Menu.selectedCallback" method call from the platform for this item.
Only items that do not have submenus will have this intent invoked.
Only one of onSelected or onSelectedIntent may be specified.
If neither onSelected nor onSelectedIntent are specified, then this menu item is considered to be disabled.
The default implementation returns null.
Implementation
Intent? get onSelectedIntent => null;