AtomicSwitch constructor

const AtomicSwitch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool>? onChanged,
  4. Color? activeColor,
  5. Color? inactiveColor,
  6. Color? activeTrackColor,
  7. Color? inactiveTrackColor,
  8. IconData? activeIcon,
  9. IconData? inactiveIcon,
  10. String? label,
  11. AtomicSwitchLabelPosition labelPosition = AtomicSwitchLabelPosition.end,
  12. AtomicSwitchSize size = AtomicSwitchSize.medium,
  13. 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,
});