CustomCheckboxGroup constructor

const CustomCheckboxGroup({
  1. Key? key,
  2. String? label,
  3. TextStyle? labelStyle,
  4. required Map<String, String> items,
  5. List<String> selectedKeys = const [],
  6. String? errorMsg,
  7. Color? errorColor,
  8. void onChanged(
    1. List<String> selectedKeys,
    2. Map<String, String> selectedItems
    )?,
  9. Color? checkboxActiveColor,
  10. Color? checkboxBorderColor,
  11. Color? textColor,
  12. bool isDisabled = false,
  13. bool isOptionalMark = false,
  14. Color? disabledTextColor,
  15. Color? disabledCheckboxColor,
  16. bool showSelectAll = false,
  17. int? maxSelection,
  18. int? minSelection,
  19. CheckboxGroupLayout layout = CheckboxGroupLayout.vertical,
})

Implementation

const CustomCheckboxGroup({
  Key? key,
  this.label,
  this.labelStyle,
  required this.items,
  this.selectedKeys = const [],
  this.errorMsg,
  this.errorColor,
  this.onChanged,
  this.checkboxActiveColor,
  this.checkboxBorderColor,
  this.textColor,
  this.isDisabled = false,
  this.isOptionalMark = false,
  this.disabledTextColor,
  this.disabledCheckboxColor,
  this.showSelectAll = false,
  this.maxSelection,
  this.minSelection,
  this.layout = CheckboxGroupLayout.vertical,
}) : super(key: key);