ToggleSwitch constructor
const
ToggleSwitch({
- Key? key,
- required bool value,
- ValueChanged<
bool> ? onChanged, - FocusNode? focusNode,
- bool autofocus = false,
- ToggleSwitchThemeData? theme,
Implementation
const ToggleSwitch({
super.key,
required this.value,
this.onChanged,
this.focusNode,
this.autofocus = false,
this.theme,
});