selectButton method

void selectButton(
  1. T selectedValue
)

This function will select the button and update the state THis can be access from outside to change the selected value programatically Please note that this will all call the radioButtonValue callback

Implementation

void selectButton(T selectedValue) {
  widget.radioButtonValue(selectedValue);
  if (mounted) setState(() {});
  _currentSelectedValue = selectedValue;
}