Radio constructor
const
Radio({})
Creates a Radio with the specified selection state and styling.
The value parameter is required and determines whether the radio
appears selected. All other parameters are optional and will fall
back to theme values when not specified.
Parameters:
value(bool, required): Whether the radio button is selectedfocusing(bool, default: false): Whether the radio has focussize(double?, optional): Size of the radio button in pixelsactiveColor(Color?, optional): Color of the selection indicatorborderColor(Color?, optional): Color of the outer borderbackgroundColor(Color?, optional): Color of the background fill
Example:
Radio(
value: selectedValue == itemValue,
focusing: focusNode.hasFocus,
size: 18,
);
Implementation
const Radio({
super.key,
required this.value,
this.focusing = false,
this.size,
this.activeColor,
this.borderColor,
this.backgroundColor,
});