RadioButton constructor

const RadioButton({
  1. Key? key,
  2. int index = 0,
  3. int selection = 0,
  4. Color? radioSelectedColor,
  5. Color? radioUnselectedColor,
  6. required String text,
  7. Color? textColor,
  8. ValueState<Color>? textColorState,
  9. OnViewItemChangeListener<int?>? onClick,
  10. Color? rippleColor,
  11. Color? pressedColor,
  12. Color? background,
  13. ValueState<Color>? backgroundState,
  14. ViewCornerRadius? cornerRadius,
  15. EdgeInsets? margin,
  16. EdgeInsets? padding,
  17. double? spaceBetween,
  18. ValueState<String>? textState,
  19. double? textSize,
  20. ValueState<double>? textSizeState,
  21. TextStyle? textStyle,
  22. 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,
});