CheckboxGroup constructor

CheckboxGroup(
  1. {Key? key,
  2. required List<String> labels,
  3. List<String>? checked,
  4. List<String>? disabled,
  5. void onChange(
    1. bool isChecked,
    2. String label,
    3. int index
    )?,
  6. void onSelected(
    1. List<String> selected
    )?,
  7. TextStyle labelStyle = const TextStyle(),
  8. GroupedButtonsOrientation orientation = GroupedButtonsOrientation.VERTICAL,
  9. Widget itemBuilder(
    1. Checkbox checkBox,
    2. Text label,
    3. int index
    )?,
  10. Color? activeColor,
  11. Color checkColor = Colors.white,
  12. bool tristate = false,
  13. EdgeInsetsGeometry padding = EdgeInsets.zero,
  14. EdgeInsetsGeometry margin = EdgeInsets.zero}
)

Implementation

CheckboxGroup({
  Key? key,
  required this.labels,
  this.checked,
  this.disabled,
  this.onChange,
  this.onSelected,
  this.labelStyle = const TextStyle(),
  this.orientation = GroupedButtonsOrientation.VERTICAL,
  this.itemBuilder,
  this.activeColor,
  this.checkColor = Colors.white,
  this.tristate = false,
  this.padding = EdgeInsets.zero,
  this.margin = EdgeInsets.zero,
}) : super(key: key);