ControlledSwitch constructor
const
ControlledSwitch({
- Key? key,
- SwitchController? controller,
- bool initialValue = false,
- ValueChanged<
bool> ? onChanged, - bool enabled = true,
- Widget? leading,
- Widget? trailing,
Implementation
const ControlledSwitch({
super.key,
this.controller,
this.initialValue = false,
this.onChanged,
this.enabled = true,
this.leading,
this.trailing,
});