setSelected method
Implementation
void setSelected(int selected) {
if (selected >= widget.minValue) {
setState(() {
selectedValue = selected;
_controller.text = selected.toString();
});
if (widget.onChanged != null) {
widget.onChanged!(selected);
}
}
}