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