ArcaneCheckbox.destructive constructor

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

Implementation

const ArcaneCheckbox.destructive({
  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.destructive;