setSelected method

void setSelected(
  1. int selected
)

Implementation

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

    if (widget.onChanged != null) {
      widget.onChanged!(selected);
    }
  }
}