ToggleSwitchProps constructor
const
ToggleSwitchProps({
- required bool value,
- void onChanged()?,
- bool disabled = false,
- ComponentSize size = ComponentSize.md,
- ColorVariant color = ColorVariant.primary,
- String? label,
- bool labelLeft = false,
Implementation
const ToggleSwitchProps({
required this.value,
this.onChanged,
this.disabled = false,
this.size = ComponentSize.md,
this.color = ColorVariant.primary,
this.label,
this.labelLeft = false,
});