onSelected property Null safety

VoidCallback? onSelected
final

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

If unset, this menu item will be disabled.

Implementation

@override
final VoidCallback? onSelected;