onOptionRemoved property
onOptionRemoved is the callback that is called when an option is removed.The callback takes two arguments, the index of the removed option and the removed option. This will be called only when the delete icon is clicked on the option chip.
This will not be called when the option is removed programmatically.
index
is the index of the removed option.
option
is the removed option.
Implementation
final void Function(int index, ValueItem<T> option)? onOptionRemoved;