onCanceled property
void Function()?
onCanceled
final
Called when the user dismisses the popup menu without selecting an item.
If the user selects a value, onSelected
is called instead.
Implementation
final void Function()? onCanceled;