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