ToggleSwitch constructor

const ToggleSwitch({
  1. required bool value,
  2. void onChanged(
    1. bool
    )?,
  3. bool disabled = false,
  4. ToggleSwitchSize size = ToggleSwitchSize.medium,
  5. ToggleStyle? style,
  6. String? label,
  7. bool labelLeft = false,
  8. Key? key,
})

Implementation

const ToggleSwitch({
  required this.value,
  this.onChanged,
  this.disabled = false,
  this.size = ToggleSwitchSize.medium,
  this.style,
  this.label,
  this.labelLeft = false,
  super.key,
});