ArcaneCheckbox constructor

const ArcaneCheckbox({
  1. String? id,
  2. required bool checked,
  3. String? label,
  4. String? description,
  5. ComponentSize size = ComponentSize.md,
  6. ColorVariant color = ColorVariant.primary,
  7. bool disabled = false,
  8. String? group,
  9. String? value,
  10. void onChanged(
    1. bool
    )?,
  11. void onToggle(
    1. bool
    )?,
  12. Key? key,
})

Implementation

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