CustomSwitch constructor
const
CustomSwitch({
- Key? key,
- required bool checked,
- ValueChanged<
bool> ? onCheckedChange, - bool enabled = true,
- bool loading = false,
- SwitchSize size = SwitchSize.l,
- 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,
});