ControllerDecoupledException constructor
ControllerDecoupledException({
- RadioGroupController? radioGroupController,
Throws an exception for a RadioGroupController that can no longer see its RadioGroup.
radioGroupController
is the controller that is throwing the error.
Implementation
ControllerDecoupledException({RadioGroupController? radioGroupController}) {
// Check to see if the radio group controller that caused `this` exception
// to be thrown was provided.
if (radioGroupController == null) {
// If no controller was provided, throw the default error message.
throw (_cause);
} else {
// If the radio group controller was provided, include it in the error
// message to help with debugging.
throw ("$_errMsgPt1 "
"RadioGroupController:"
"${radioGroupController.myRadioGroupKey.toString()} $_errMsgPt2");
}
}