onChanged property

void Function(List<T> data) onChanged
final

Called everytime when user selects or unselects an item. Returns selected items. If user selects an item it gets added to the selected items. If user unselect by tapping on deleteIcon on the chip, it gets removed from the selected items.

Implementation

final void Function(List<T> data) onChanged;