DDSCheckboxGroup constructor

const DDSCheckboxGroup({
  1. Key? key,
  2. CheckboxGroupVariant variant = CheckboxGroupVariant.grouped,
  3. DDSCheckboxGroupDirection? direction = DDSCheckboxGroupDirection.vertical,
  4. String? title,
  5. String? subTitle,
  6. required String labelText,
  7. Parent? parent,
  8. Color? checkedColor = ThemeColors.primary,
  9. List<GroupChildren>? children,
  10. ValueChanged<Map<String, Object>>? onChanged,
  11. Border? border,
  12. Color? checkedBorderColor,
  13. Color? uncheckedBorderColor,
  14. Icon? customCheckIcon,
  15. CheckboxShape shape = CheckboxShape.roundedRectangle,
  16. CheckboxSize? size = CheckboxSize.medium,
  17. double? spacing,
  18. TextStyle? titleTextStyle,
  19. double? titleFontSize,
  20. FontWeight? titleFontWeight,
  21. Color? titleColor,
  22. TitleType? titleType = TitleType.h5,
  23. Variant? titleVariant,
  24. TextStyle? subTitleTextStyle,
  25. double? subTitleFontSize,
  26. FontWeight? subTitleFontWeight,
  27. Color? subTitleColor,
  28. TitleType? subTitleType = TitleType.h6,
  29. Variant? subTitleVariant,
  30. TextStyle? parentLabelTextStyle,
  31. double? parentLabelFontSize,
  32. FontWeight? parentLabelFontWeight,
  33. Color? parentLabelColor,
  34. TitleType? parentLabelType = TitleType.h5,
  35. Variant? parentLabelVariant,
  36. TextStyle? childLabelTextStyle,
  37. double? childLabelFontSize,
  38. FontWeight? childLabelFontWeight,
  39. Color? childLabelColor,
  40. double? childLabelLetterSpacing,
  41. double? childLabelLineHeight,
  42. TextDecoration? childLabelDecoration,
  43. Color? childLabelDecorationColor,
  44. List<Shadow>? childLabelShadows,
  45. FontStyle? childLabelFontStyle,
  46. TextAlign? childLabelTextAlign,
  47. int? childLabelMaxLines,
  48. TextOverflow? childLabelOverflow,
})

Implementation

const DDSCheckboxGroup({
  Key? key,
  this.variant = CheckboxGroupVariant.grouped,
  this.direction = DDSCheckboxGroupDirection.vertical,
  this.title,
  this.subTitle,
  required this.labelText,
  this.parent,
  this.checkedColor = ThemeColors.primary,
  this.children,
  this.onChanged,
  this.border,
  this.checkedBorderColor,
  this.uncheckedBorderColor,
  this.customCheckIcon,
  this.shape = CheckboxShape.roundedRectangle,
  this.size = CheckboxSize.medium,
  this.spacing,
  // Title customization
  this.titleTextStyle,
  this.titleFontSize,
  this.titleFontWeight,
  this.titleColor,
  this.titleType = TitleType.h5,
  this.titleVariant,
  // Subtitle customization
  this.subTitleTextStyle,
  this.subTitleFontSize,
  this.subTitleFontWeight,
  this.subTitleColor,
  this.subTitleType = TitleType.h6,
  this.subTitleVariant,
  // Parent label customization
  this.parentLabelTextStyle,
  this.parentLabelFontSize,
  this.parentLabelFontWeight,
  this.parentLabelColor,
  this.parentLabelType = TitleType.h5,
  this.parentLabelVariant,
  // Child label customization
  this.childLabelTextStyle,
  this.childLabelFontSize,
  this.childLabelFontWeight,
  this.childLabelColor,
  this.childLabelLetterSpacing,
  this.childLabelLineHeight,
  this.childLabelDecoration,
  this.childLabelDecorationColor,
  this.childLabelShadows,
  this.childLabelFontStyle,
  this.childLabelTextAlign,
  this.childLabelMaxLines,
  this.childLabelOverflow,
}) : super(key: key);