CustomCheckBox constructor

CustomCheckBox({
  1. Key? key,
  2. required AppTheme theme,
  3. required bool? value,
  4. bool enable = true,
  5. String text = '',
  6. double textSize = 16,
  7. double descriptionTextSize = 14,
  8. String description = '',
  9. Color? textColor,
  10. Color? activeColor,
  11. Color disableColor = Colors.grey,
  12. double size = 24,
  13. void onChanged(
    1. bool?
    )?,
  14. TextStyle? textStyle,
  15. 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();