ArcaneToggleSwitch.destructive constructor

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

Implementation

const ArcaneToggleSwitch.destructive({
  this.id,
  required this.value,
  this.onChanged,
  this.disabled = false,
  this.size = ComponentSize.md,
  this.label,
  this.labelLeft = false,
  this.group,
  this.itemValue,
  this.styles,
  this.decoration,
  super.key,
}) : color = ColorVariant.destructive;