ControlledToggle constructor
const
ControlledToggle({
- Key? key,
- ToggleController? controller,
- bool? initialValue,
- ValueChanged<
bool> ? onChanged, - bool enabled = true,
- required Widget child,
- ButtonStyle style = const ButtonStyle.ghost(),
Implementation
const ControlledToggle({
super.key,
this.controller,
this.initialValue,
this.onChanged,
this.enabled = true,
required this.child,
this.style = const ButtonStyle.ghost(),
});