AtomicSwitch constructor
const
AtomicSwitch({
- Key? key,
- required bool value,
- required ValueChanged<
bool> ? onChanged, - Color? activeColor,
- Color? inactiveColor,
- Color? activeTrackColor,
- Color? inactiveTrackColor,
- IconData? activeIcon,
- IconData? inactiveIcon,
- String? label,
- AtomicSwitchLabelPosition labelPosition = AtomicSwitchLabelPosition.end,
- AtomicSwitchSize size = AtomicSwitchSize.medium,
- bool enabled = true,
Implementation
const AtomicSwitch({
super.key,
required this.value,
required this.onChanged,
this.activeColor,
this.inactiveColor,
this.activeTrackColor,
this.inactiveTrackColor,
this.activeIcon,
this.inactiveIcon,
this.label,
this.labelPosition = AtomicSwitchLabelPosition.end,
this.size = AtomicSwitchSize.medium,
this.enabled = true,
});