AuiSwitch constructor

const AuiSwitch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool>? onChanged,
  4. String? label,
  5. SwitchLabelPosition labelPosition = SwitchLabelPosition.left,
  6. Color? activeColor,
  7. Color? inactiveColor,
  8. Color activeThumbColor = Colors.white,
  9. bool disabled = false,
  10. double size = 1.0,
})

Creates an AuiSwitch.

Implementation

const AuiSwitch({
  super.key,
  required this.value,
  required this.onChanged,
  this.label,
  this.labelPosition = SwitchLabelPosition.left,
  this.activeColor,
  this.inactiveColor,
  this.activeThumbColor = Colors.white,
  this.disabled = false,
  this.size = 1.0,
});