PickerSelectedCallback typedef

PickerSelectedCallback = void Function(Picker picker, int index, List<int> selected)

Callback function that is called when a picker item is selected.

Parameters:

  • picker - The picker instance that triggered the selection
  • index - The column index of the selected item
  • selected - List of all selected indices across all columns

Implementation

typedef PickerSelectedCallback = void Function(
    Picker picker, int index, List<int> selected);