OptimusCheckbox constructor
const
OptimusCheckbox({
- Key? key,
- required Widget label,
- bool? isChecked = false,
- String? error,
- bool isEnabled = true,
- OptimusCheckboxSize size = OptimusCheckboxSize.large,
- bool tristate = false,
- required ValueChanged<
bool> onChanged,
Implementation
const OptimusCheckbox({
super.key,
required this.label,
this.isChecked = false,
this.error,
this.isEnabled = true,
this.size = OptimusCheckboxSize.large,
this.tristate = false,
required this.onChanged,
}) : assert(
tristate || isChecked != null,
'isChecked must be set if tristate is false',
);