Handle Radio value
unknown
plain_text
4 years ago
300 B
4
Indexable
int selectedServiceIndex = -1;
int _radioValue = -1;
void _handleRadioValueChange(int value) {
setState(() {
_radioValue = value;
selectedServiceIndex = _radioValue;
servicePrice = dataServices[_radioValue].charge;
serviceId = dataServices[_radioValue].id;
});
}Editor is loading...