CustomCheckBox constructor

CustomCheckBox({
  1. Key? key,
  2. required AppTheme theme,
  3. required bool? value,
  4. bool enable = true,
  5. String text = '',
  6. String description = '',
  7. Color? textColor,
  8. Color? activeColor,
  9. Color disableColor = Colors.grey,
  10. double size = 24,
  11. void onChanged(
    1. bool?
    )?,
})

Implementation

CustomCheckBox({
  super.key,
  required this.theme,
  required this.value,
  this.enable = true,
  this.text = '',
  this.description = '',
  Color? textColor,
  Color? activeColor,
  this.disableColor = Colors.grey,
  this.size = 24,
  this.onChanged,
})  : textColor = textColor ?? theme.textColor(),
      activeColor = activeColor ?? theme.primaryColor();