onSelectionChanged property

void Function(BuildContext context, ValueKey<String> selectedMenuItemKey) onSelectionChanged
final

The callback that is called when the menu item is selected

Implementation

final void Function(
  BuildContext context,
  ValueKey<String> selectedMenuItemKey,
) onSelectionChanged;