xRadio method
Implementation
Widget xRadio({
final bool groupValue,
/// Called when the user selects this radio button.
///
/// The radio button passes [value] as a parameter to this callback. The radio
/// button does not actually change state until the parent widget rebuilds the
/// radio button with the new [groupValue].
///
/// If null, the radio button will be displayed as disabled.
///
/// The provided callback will not be invoked if this radio button is already
/// selected.
///
/// The callback provided to [onChanged] should update the state of the parent
/// [StatefulWidget] using the [State.setState] method, so that the parent
/// gets rebuilt; for example:
///
/// ```dart
/// Radio<SingingCharacter>(
/// value: SingingCharacter.lafayette,
/// groupValue: _character,
/// onChanged: (SingingCharacter newValue) {
/// setState(() {
/// _character = newValue;
/// });
/// },
/// )
/// ```
final ValueChanged onChanged,
/// The color to use when this radio button is selected.
///
/// Defaults to [ThemeData.toggleableActiveColor].
final Color activeColor,
/// Configures the minimum size of the tap target.
///
/// Defaults to [ThemeData.materialTapTargetSize].
///
/// See also:
///
/// * [MaterialTapTargetSize], for a description of how this affects tap targets.
final MaterialTapTargetSize materialTapTargetSize,
/// The color for the radio's [Material] when it has the input focus.
final Color focusColor,
/// The color for the radio's [Material] when a pointer is hovering over it.
final Color hoverColor,
/// {@macro flutter.widgets.Focus.focusNode}
final FocusNode focusNode,
/// {@macro flutter.widgets.Focus.autofocus}
final bool autofocus = false,
final Key key,
final bool value,
}) {
return Radio(
value: value,
groupValue: groupValue,
activeColor: activeColor,
autofocus: autofocus,
focusColor: focusColor,
focusNode: focusNode,
hoverColor: hoverColor,
key: key,
materialTapTargetSize: materialTapTargetSize,
onChanged: this);
}