DDSCheckboxGroup constructor
const
DDSCheckboxGroup({
- Key? key,
- CheckboxGroupVariant variant = CheckboxGroupVariant.grouped,
- DDSCheckboxGroupDirection? direction = DDSCheckboxGroupDirection.vertical,
- String? title,
- String? subTitle,
- required String labelText,
- Parent? parent,
- Color? checkedColor = ThemeColors.primary,
- List<
GroupChildren> ? children, - ValueChanged<
Map< ? onChanged,String, Object> > - Border? border,
- Color? checkedBorderColor,
- Color? uncheckedBorderColor,
- Icon? customCheckIcon,
- CheckboxShape shape = CheckboxShape.roundedRectangle,
- CheckboxSize? size = CheckboxSize.medium,
- double? spacing,
- TextStyle? titleTextStyle,
- double? titleFontSize,
- FontWeight? titleFontWeight,
- Color? titleColor,
- TitleType? titleType = TitleType.h5,
- Variant? titleVariant,
- TextStyle? subTitleTextStyle,
- double? subTitleFontSize,
- FontWeight? subTitleFontWeight,
- Color? subTitleColor,
- TitleType? subTitleType = TitleType.h6,
- Variant? subTitleVariant,
- TextStyle? parentLabelTextStyle,
- double? parentLabelFontSize,
- FontWeight? parentLabelFontWeight,
- Color? parentLabelColor,
- TitleType? parentLabelType = TitleType.h5,
- Variant? parentLabelVariant,
- TextStyle? childLabelTextStyle,
- double? childLabelFontSize,
- FontWeight? childLabelFontWeight,
- Color? childLabelColor,
- double? childLabelLetterSpacing,
- double? childLabelLineHeight,
- TextDecoration? childLabelDecoration,
- Color? childLabelDecorationColor,
- List<
Shadow> ? childLabelShadows, - FontStyle? childLabelFontStyle,
- TextAlign? childLabelTextAlign,
- int? childLabelMaxLines,
- 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);