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