CustomCheckBox constructor
CustomCheckBox({
- Key? key,
- required AppTheme theme,
- required bool? value,
- bool enable = true,
- String text = '',
- double textSize = 16,
- double descriptionTextSize = 14,
- String description = '',
- Color? textColor,
- Color? activeColor,
- Color disableColor = Colors.grey,
- double size = 24,
- void onChanged(
- bool?
- TextStyle? textStyle,
- TextStyle? descriptionTextStyle,
Implementation
CustomCheckBox({
super.key,
required AppTheme theme,
required this.value,
this.enable = true,
this.text = '',
this.textSize = 16,
this.descriptionTextSize = 14,
this.description = '',
Color? textColor,
Color? activeColor,
this.disableColor = Colors.grey,
this.size = 24,
this.onChanged,
this.textStyle,
this.descriptionTextStyle,
}) : textColor = textColor ?? theme.textColor(),
activeColor = activeColor ?? theme.primaryColor();