PopupMenuItemSelected<T> typedef

void PopupMenuItemSelected (
  1. T value
)

Signature for the callback invoked when a menu item is selected. The argument is the value of the PopupMenuItem that caused its menu to be dismissed.

Used by PopupMenuButton.onSelected.

Implementation

typedef PopupMenuItemSelected<T> = void Function(T value);