ToggleSwitch constructor
const
ToggleSwitch({
- required bool value,
- void onChanged()?,
- bool disabled = false,
- ToggleSwitchSize size = ToggleSwitchSize.medium,
- ToggleStyle? style,
- String? label,
- bool labelLeft = false,
- 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,
});