CustomSwitch constructor

const CustomSwitch({
  1. Key? key,
  2. required bool checked,
  3. ValueChanged<bool>? onCheckedChange,
  4. bool enabled = true,
  5. bool loading = false,
  6. SwitchSize size = SwitchSize.l,
  7. SwitchType type = SwitchType.basic,
})

Implementation

const CustomSwitch({
  super.key,
  required this.checked,
  this.onCheckedChange,
  this.enabled = true,
  this.loading = false,
  this.size = SwitchSize.l,
  this.type = SwitchType.basic,
});