ToggleSwitch constructor

const ToggleSwitch({
  1. Key? key,
  2. required bool value,
  3. ValueChanged<bool>? onChanged,
  4. FocusNode? focusNode,
  5. bool autofocus = false,
  6. ToggleSwitchThemeData? theme,
})

Implementation

const ToggleSwitch({
  super.key,
  required this.value,
  this.onChanged,
  this.focusNode,
  this.autofocus = false,
  this.theme,
});