ControlledSwitch constructor
const
ControlledSwitch({
- Key? key,
- SwitchController? controller,
- bool initialValue = false,
- ValueChanged<
bool> ? onChanged, - bool enabled = true,
- Widget? leading,
- Widget? trailing,
- double? gap,
- Color? activeColor,
- Color? inactiveColor,
- Color? activeThumbColor,
- Color? inactiveThumbColor,
- BorderRadiusGeometry? borderRadius,
Implementation
const ControlledSwitch({
super.key,
this.controller,
this.initialValue = false,
this.onChanged,
this.enabled = true,
this.leading,
this.trailing,
this.gap,
this.activeColor,
this.inactiveColor,
this.activeThumbColor,
this.inactiveThumbColor,
this.borderRadius,
});