This method returns the id of the model you have selected and whether it is selected.
final Function(int id, bool isSelect) onSelect;