RadioButton constructor
const
RadioButton({
- Key? key,
- int index = 0,
- int selection = 0,
- Color? radioSelectedColor,
- Color? radioUnselectedColor,
- required String text,
- Color? textColor,
- ValueState<
Color> ? textColorState, - OnViewItemChangeListener<
int?> ? onClick, - Color? rippleColor,
- Color? pressedColor,
- Color? background,
- ValueState<
Color> ? backgroundState, - ViewCornerRadius? cornerRadius,
- EdgeInsets? margin,
- EdgeInsets? padding,
- double? spaceBetween,
- ValueState<
String> ? textState, - double? textSize,
- ValueState<
double> ? textSizeState, - TextStyle? textStyle,
- ValueState<
TextStyle> ? textStyleState,
Implementation
const RadioButton({
super.key,
this.index = 0,
this.selection = 0,
this.radioSelectedColor,
this.radioUnselectedColor,
required this.text,
this.textColor,
this.textColorState,
this.onClick,
this.rippleColor,
this.pressedColor,
this.background,
this.backgroundState,
this.cornerRadius,
this.margin,
this.padding,
this.spaceBetween,
this.textState,
this.textSize,
this.textSizeState,
this.textStyle,
this.textStyleState,
});