ArcaneToggleSwitch constructor
const
ArcaneToggleSwitch({
- required bool value,
- void onChanged()?,
- void onToggle()?,
- bool disabled = false,
- ComponentSize size = ComponentSize.md,
- ColorVariant color = ColorVariant.primary,
- String? label,
- bool labelLeft = false,
- Key? key,
Implementation
const ArcaneToggleSwitch({
required this.value,
void Function(bool)? onChanged,
void Function(bool)? onToggle,
this.disabled = false,
this.size = ComponentSize.md,
this.color = ColorVariant.primary,
this.label,
this.labelLeft = false,
super.key,
}) : onChanged = onChanged ?? onToggle;