ToggleSwitchProps constructor
const
ToggleSwitchProps({
- required bool value,
- void onChanged()?,
- bool disabled = false,
- ToggleSwitchSize size = ToggleSwitchSize.medium,
- ToggleSwitchVariant variant = ToggleSwitchVariant.primary,
- String? label,
- bool labelLeft = false,
Implementation
const ToggleSwitchProps({
required this.value,
this.onChanged,
this.disabled = false,
this.size = ToggleSwitchSize.medium,
this.variant = ToggleSwitchVariant.primary,
this.label,
this.labelLeft = false,
});