onSelected property

VoidCallback? onSelected
final

An optional callback that is called when this PlatformMenuItem is selected.

At most one of onSelected and onSelectedIntent may be set. If neither field is set, this menu item will be disabled.

Implementation

final VoidCallback? onSelected;