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