ArcaneToggleSwitch.warning constructor

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

Implementation

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