CustomCheckBox constructor

CustomCheckBox({
  1. Key? key,
  2. List<String>? checkboxList,
  3. Color borderColor = Colors.black,
  4. TextStyle? labelTextStyle,
  5. Color checkIconColor = Colors.black,
  6. Color selectedBoxColor = Colors.transparent,
  7. double paddingBetweenTitleAndCheckBox = 0,
  8. Widget? widgetUnderTheLabel,
  9. double checkBoxWidth = 15,
  10. double checkBoxHeight = 15,
  11. required dynamic onChanged(
    1. dynamic
    ),
  12. required bool multipleChoice,
  13. Icon? checkBoxIcon,
  14. double iconSize = 1.4,
  15. double checkBoxSplashRadius = 10,
  16. bool clickableLabel = false,
  17. double borderWidth = 2.0,
  18. Color? checkBoxSplashColor,
  19. Color? clickableLabelSplashColor,
  20. String? textLabel,
  21. BorderRadius? borderRadius,
  22. BoxShape shape = BoxShape.rectangle,
  23. EdgeInsets margin = EdgeInsets.zero,
})

Implementation

CustomCheckBox({
  super.key,
  this.checkboxList,
  this.borderColor = Colors.black,
  this.labelTextStyle,
  this.checkIconColor = Colors.black,
  this.selectedBoxColor = Colors.transparent,
  this.paddingBetweenTitleAndCheckBox = 0,
  this.widgetUnderTheLabel,
  this.checkBoxWidth = 15,
  this.checkBoxHeight = 15,
  required this.onChanged,
  required this.multipleChoice,
  this.checkBoxIcon,
  this.iconSize = 1.4,
  this.checkBoxSplashRadius = 10,
  this.clickableLabel = false,
  this.borderWidth = 2.0,
  this.checkBoxSplashColor,
  this.clickableLabelSplashColor,
  this.textLabel,
  this.borderRadius,
  this.shape = BoxShape.rectangle,
  this.margin = EdgeInsets.zero,
});