selectedIndex property
int
get
selectedIndex
Returns the index of the selected item in this
controller's radio group.
Note: If no item is selected, this method will return -1
.
@throws ControllerDecoupledException If the controller cannot access the value of its radio group.
Implementation
int get selectedIndex {
if (_myRadioGroup != null) {
return _myRadioGroup!.selectedIndex;
}
// If it makes it to this point, something has gone wrong.
throw ControllerDecoupledException(radioGroupController: this);
}