ArcaneToggleSwitch constructor

const ArcaneToggleSwitch({
  1. String? id,
  2. required bool value,
  3. void onChanged(
    1. bool
    )?,
  4. bool disabled = false,
  5. ComponentSize size = ComponentSize.md,
  6. ColorVariant color = ColorVariant.primary,
  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({
  this.id,
  required this.value,
  this.onChanged,
  this.disabled = false,
  this.size = ComponentSize.md,
  this.color = ColorVariant.primary,
  this.label,
  this.labelLeft = false,
  this.group,
  this.itemValue,
  this.styles,
  this.decoration,
  super.key,
});