ArcaneCheckbox.primary constructor
const
ArcaneCheckbox.primary({
- String? id,
- required bool checked,
- String? label,
- String? description,
- ComponentSize size = ComponentSize.md,
- bool disabled = false,
- String? group,
- String? value,
- void onChanged()?,
- void onToggle()?,
- ArcaneStyleData? styles,
- ArcaneDecoration? decoration,
- Key? key,
Implementation
const ArcaneCheckbox.primary({
this.id,
required this.checked,
this.label,
this.description,
this.size = ComponentSize.md,
this.disabled = false,
this.group,
this.value,
void Function(bool)? onChanged,
void Function(bool)? onToggle,
this.styles,
this.decoration,
super.key,
}) : _onChanged = onChanged ?? onToggle,
color = ColorVariant.primary;