CheckboxGroup(- {Key? key,
- required List<String> labels,
- List<String>? checked,
- List<String>? disabled,
- void onChange(
- bool isChecked,
- String label,
- int index
)?,
- void onSelected(
- List<String> selected
)?,
- TextStyle labelStyle = const TextStyle(),
- GroupedButtonsOrientation orientation = GroupedButtonsOrientation.VERTICAL,
- Widget itemBuilder(
- Checkbox checkBox,
- Text label,
- int index
)?,
- Color? activeColor,
- Color checkColor = Colors.white,
- bool tristate = false,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- 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);