setSelected method

void setSelected(
  1. int selected
)

Implementation

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