PickerConfirmBeforeCallback typedef
Callback function that is called before confirming the picker selection.
This callback allows for validation or custom logic before confirmation.
Return true to proceed with confirmation, false to cancel.
Parameters:
picker- The picker instance being confirmedselected- List of all selected indices across all columns
Returns a Future<bool> indicating whether to proceed with confirmation.
Implementation
typedef PickerConfirmBeforeCallback = Future<bool> Function(
Picker picker, List<int> selected);