onSelected property
Called when the user selects a value from the popup menu created by this menu. If the popup menu is dismissed without selecting a value, onCanceled is called instead.
Implementation
final void Function(Map<String, Object?> item)? onSelected;