CustomRadio constructor
CustomRadio({
- Key? key,
- required AppTheme theme,
- required String text,
- double textSize = 16,
- bool enable = true,
- bool value = false,
- required Color color,
- double size = 24,
- Color? activeColor,
- Color? inactiveColor,
- Color disableColor = Colors.grey,
- Color? textColor,
- void onChanged(
- bool?
- 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;