onSelectionChanged property
Execute when a new option is selected, and pass the newly selected option index.
Implementation
final Function(int)? onSelectionChanged;
Execute when a new option is selected, and pass the newly selected option index.
final Function(int)? onSelectionChanged;