CustomRadio constructor

CustomRadio({
  1. Key? key,
  2. required AppTheme theme,
  3. required String text,
  4. double textSize = 16,
  5. bool enable = true,
  6. bool value = false,
  7. required Color color,
  8. double size = 24,
  9. Color? activeColor,
  10. Color? inactiveColor,
  11. Color disableColor = Colors.grey,
  12. Color? textColor,
  13. void onChanged(
    1. bool?
    )?,
  14. TextStyle? textStyle,
})

Implementation

CustomRadio({
  super.key,
  required AppTheme theme,
  required this.text,
  this.textSize = 16,
  this.enable = true,
  this.value = false,
  required this.color,
  this.size = 24,
  Color? activeColor,
  Color? inactiveColor,
  this.disableColor = Colors.grey,
  Color? textColor,
  this.onChanged,
  this.textStyle,
}) : textColor = textColor ?? theme.textColor(),
     activeColor = activeColor ?? theme.primaryColor(),
     inactiveColor = inactiveColor ?? Colors.white;